记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:9:20: warning: comparison of constant '30' with boolean expression is always true [-Wbool-compare]
   if(i%10==2||20<=i<30)
                    ^
foo.c:9:17: warning: comparisons like 'X<=Y<=Z' do not have their mathematical meaning [-Wparentheses]
   if(i%10==2||20<=i<30)
               ~~^~~
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d %d",&a,&b);
  ^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 20, expect 5. 0ms 256.0 KiB
#2 Wrong Answer Read 99, expect 20. 0ms 276.0 KiB
#3 Wrong Answer Read 10, expect 21. 0ms 256.0 KiB
#4 Wrong Answer Read 1000, expect 300. 0ms 256.0 KiB
#5 Wrong Answer Read 1, expect 4. 1ms 256.0 KiB
#6 Wrong Answer Read 2, expect 7. 0ms 256.0 KiB
#7 Wrong Answer Read 2001, expect 826. 0ms 288.0 KiB
#8 Wrong Answer Read 8643, expect 3590. 0ms 256.0 KiB
#9 Wrong Answer Read 8, expect 0. 0ms 288.0 KiB
#10 Wrong Answer Read 10000, expect 4000. 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1006 数字统计
语言
C
递交时间
2021-09-19 21:24:15
评测时间
2021-09-19 21:24:15
评测机
分数
0
总耗时
9ms
峰值内存
288.0 KiB