记录详情

Time Exceeded

foo.cc: In function 'int main()':
foo.cc:6:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    6 | scanf("%d%d",&n,&Q);
      | ~~~~~^~~~~~~~~~~~~~
foo.cc:7:28: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    7 | for(int i=1;i<=n;i++){scanf("%d",&a[i]);s[i]=s[i-1]+a[i];}
      |                       ~~~~~^~~~~~~~~~~~
foo.cc:9:6: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    9 | scanf("%d%d",&l,&r);
      | ~~~~~^~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Time Exceeded ≥3ms ≥384.0 KiB
#2 Time Exceeded ≥2ms ≥384.0 KiB
#3 Time Exceeded ≥2ms ≥384.0 KiB
#4 Time Exceeded ≥3ms ≥384.0 KiB
#5 Time Exceeded ≥3ms ≥384.0 KiB

信息

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