记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:6:10: warning: format '%d' expects argument of type 'int *', but argument 2 has type 'long long int *' [-Wformat=]
  scanf("%d", &a);
         ~^   ~~
         %lld
foo.c:30:12: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   printf("%d", (f - 1) + cnt * (f - l - 1)*l);
           ~^   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
           %lld
foo.c:44:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
  printf("%d", dnt + f);
          ~^   ~~~~~~~
          %lld
foo.c:5:61: warning: unused variable 'e' [-Wunused-variable]
  long long a, cnt = 0, dnt = 0, t = 0, f = 0, g = 0, h = 0, e = 0, q = 0, y = 0, l = 0;
                                                             ^
foo.c:6:2: warning: ignoring return value of 'scanf', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &a);
  ^~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 0, expect 3. 0ms 256.0 KiB
#2 Wrong Answer Read 5915, expect 30. 0ms 280.0 KiB
#3 Wrong Answer Read 0, expect 12. 0ms 256.0 KiB
#4 Wrong Answer Read 1415, expect 43257. 0ms 256.0 KiB
#5 Wrong Answer Read 0, expect 41953. 0ms 256.0 KiB
#6 Wrong Answer Read 0, expect 43261. 0ms 256.0 KiB
#7 Wrong Answer Read 1415, expect 43183. 0ms 256.0 KiB
#8 Wrong Answer Read 0, expect 4999150036. 1ms 436.0 KiB
#9 Wrong Answer Read 5415, expect 4999350021. 1ms 520.0 KiB
#10 Wrong Answer Read 8015, expect 4999161856. 1ms 520.0 KiB
#11 Wrong Answer Read 0, expect 4999146074. 1ms 436.0 KiB
#12 Wrong Answer Read 8015, expect 4999154598. 1ms 456.0 KiB
#13 Wrong Answer Read 0, expect 4999146269. 1ms 428.0 KiB

信息

递交者
类型
递交
题目
P1290 C. Young Man Do Not Say Five
比赛
南京师范大学2021年11月程序设计竞赛
语言
C
递交时间
2021-11-21 14:57:02
评测时间
2021-11-21 14:57:02
评测机
分数
0
总耗时
14ms
峰值内存
520.0 KiB