记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:7:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    7 | scanf("%d%d",&n,&Q);
      | ~~~~~^~~~~~~~~~~~~~
foo.cc:9:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 | for(int i=1;i<=n;i++){scanf("%d",&a[i]);}
      |                       ~~~~~^~~~~~~~~~~~
foo.cc:12:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   12 |         scanf("%d%d",&l,&r);
      |         ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 2031159254126699..., expect 70750635990. 21ms 1.492 MiB
#2 Wrong Answer Read 623259872-126581..., expect 163832017120. 37ms 1.621 MiB
#3 Time Exceeded ≥42ms ≥1.617 MiB
#4 Wrong Answer Read 1438300503108418..., expect 10028235095. 21ms 1.5 MiB
#5 Wrong Answer Read -185395602119411..., expect 45390684235. 26ms 1.492 MiB

信息

递交者
类型
递交
题目
【模板】序列前缀和
语言
C++
递交时间
2022-03-01 23:25:07
评测时间
2022-03-01 23:25:07
评测机
分数
0
总耗时
≥149ms
峰值内存
≥1.621 MiB