/ WHOJ /

记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:17:11: warning: format '%d' expects argument of type 'int', but argument 2 has type 'long long int' [-Wformat=]
   17 |  printf("%d",ans);
      |          ~^  ~~~
      |           |  |
      |           |  long long int
      |           int
      |          %lld
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf("%lld",&n);
      |  ~~~~~^~~~~~~~~~~
foo.cc:11:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   11 |   scanf("%lld",a+i),sum[i]=sum[i-1]+a[i];
      |   ~~~~~^~~~~~~~~~~~
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Wrong Answer Read 41146056, expect 41140549. 12ms 896.0 KiB
#3 Accepted 7ms 1.0 MiB
#4 Wrong Answer Read 320665150, expect 320628427. 11ms 1.875 MiB
#5 Wrong Answer Read 78168756, expect 78146323. 8ms 1.125 MiB
#6 Accepted 4ms 896.0 KiB
#7 Wrong Answer Read 102123486, expect 102108775. 7ms 1.25 MiB
#8 Accepted 8ms 1.25 MiB
#9 Wrong Answer Read 77582196, expect 77575740. 7ms 1.25 MiB
#10 Wrong Answer Read 79235166, expect 79225332. 6ms 1.125 MiB

信息

递交者
类型
递交
题目
P1348 完美数组
题目数据
下载
语言
C++
递交时间
2022-07-20 16:10:55
评测时间
2022-07-20 16:10:55
评测机
分数
40
总耗时
76ms
峰值内存
1.875 MiB