Wrong Answer

foo.cc: In function 'int main()':
foo.cc:17:20: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   17 |         printf("%.2f",money);
      |                 ~~~^  ~~~~~
      |                    |  |
      |                    |  int
      |                    double
      |                 %.2d
foo.cc:5:15: warning: variable 'sum' set but not used [-Wunused-but-set-variable]
    5 |     int money,sum;
      |               ^~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0.00, expect 320.00. 4ms 412.0 KiB
#2 Wrong Answer Read 0.00, expect 717.72. 5ms 516.0 KiB
#3 Wrong Answer Read 0.00, expect 1158.12. 3ms 284.0 KiB
#4 Wrong Answer Read 0.00, expect 1275.00. 4ms 432.0 KiB
#5 Wrong Answer Read 0.00, expect 2300.80. 3ms 412.0 KiB

信息

递交者
类型
递交
题目
P1026 超市促销活动
语言
C++
递交时间
2023-12-08 16:19:48
评测时间
2023-12-08 16:19:48
评测机
分数
0
总耗时
21ms
峰值内存
516.0 KiB