记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:14:28: warning: format '%f' expects argument of type 'double', but argument 2 has type 'int' [-Wformat=]
   14 |                 printf("y=%f",a*k-m);
      |                           ~^  ~~~~~
      |                            |     |
      |                            |     int
      |                            double
      |                           %d
foo.c:5:15: warning: variable 'y' set but not used [-Wunused-but-set-variable]
    5 |     int a,m,k,y;
      |               ^
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read y=0, expect 0.00. 2ms 256.0 KiB
#2 Wrong Answer Read y=0, expect 1.14. 8ms 384.0 KiB
#3 Wrong Answer Read y=0.000000, expect 1643.30. 1ms 256.0 KiB
#4 Wrong Answer Read y=0.000000, expect 4.65. 3ms 256.0 KiB
#5 Wrong Answer Read y=0.000000, expect 0.00. 3ms 256.0 KiB

信息

递交者
类型
递交
题目
P1085 xf1-8交电费
比赛
2022年迎新赛(第二场)
语言
C
递交时间
2022-08-27 17:42:30
评测时间
2022-08-27 17:42:30
评测机
分数
0
总耗时
19ms
峰值内存
384.0 KiB