Wrong Answer

foo.cc: In function 'int main()':
foo.cc:10:14: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   10 |   printf("%.2f",n*8/10);
      |           ~~~^  ~~~~~~
      |              |     |
      |              |     int
      |              double
      |           %.2d
foo.cc:16:14: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   16 |   printf("%.2f",n*9/10);
      |           ~~~^  ~~~~~~
      |              |     |
      |              |     int
      |              double
      |           %.2d
foo.cc:22:14: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   22 |   printf("%.2f",n);
      |           ~~~^  ~
      |              |  |
      |              |  int
      |              double
      |           %.2d
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0.00, expect 320.00. 2ms 384.0 KiB
#2 Wrong Answer Read 717.25, expect 717.72. 2ms 384.0 KiB
#3 Wrong Answer Read 0.00, expect 1158.12. 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Wrong Answer Read 0.00, expect 2300.80. 4ms 384.0 KiB

信息

递交者
类型
递交
题目
P1027 超市促销活动
语言
C++
递交时间
2022-07-10 12:25:32
评测时间
2022-07-10 12:25:32
评测机
分数
20
总耗时
14ms
峰值内存
384.0 KiB