/ Vijos /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:33:3: warning: this 'for' clause does not guard... [-Wmisleading-indentation]
   33 |   for(int i=0;i<=N;++i)
      |   ^~~
foo.cc:35:4: note: ...this statement, but the latter is misleadingly indented as if it were guarded by the 'for'
   35 |    printf("%d",ans);
      |    ^~~~~~
foo.cc:35:13: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   35 |    printf("%d",ans);
      |            ~^  ~~~
      |             |  |
      |             |  long long int
      |             int
      |            %lld
foo.cc:35:10: warning: 'ans' may be used uninitialized in this function [-Wmaybe-uninitialized]
   35 |    printf("%d",ans);
      |    ~~~~~~^~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 18407946, expect 31182687. 1ms 256.0 KiB
#2 Wrong Answer Read 5190108, expect 7397294. 2ms 512.0 KiB
#3 Wrong Answer Read 5559616, expect 8950112. 2ms 384.0 KiB
#4 Wrong Answer Read 29041284, expect 54922956. 2ms 348.0 KiB
#5 Wrong Answer Read 13184025, expect 27221274. 2ms 256.0 KiB
#6 Wrong Answer Read 37132369, expect 56015150. 1ms 384.0 KiB
#7 Wrong Answer Read 82418105, expect 129341576. 3ms 512.0 KiB
#8 Wrong Answer Read 137292505, expect 328479464. 2ms 512.0 KiB
#9 Wrong Answer Read 927123104, expect 1940277798. 1ms 512.0 KiB
#10 Accepted 1ms 256.0 KiB

信息

递交者
类型
递交
题目
P1312 能量项链
语言
C++
递交时间
2022-10-09 17:18:44
评测时间
2022-10-09 17:18:44
评测机
分数
10
总耗时
23ms
峰值内存
512.0 KiB