/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:9:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     scanf("%d%d",&n,&m);
     ~~~~~^~~~~~~~~~~~~~
foo.cc:10:52: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
     for(int i=1;i<=n;i++) scanf("%d%d",&p[i],&s[i]),s[i]+=s[i-1];
                           ~~~~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 7ms 7.961 MiB
#2 Accepted 7ms 7.941 MiB
#3 Accepted 7ms 7.945 MiB
#4 Accepted 7ms 7.945 MiB
#5 Accepted 6ms 7.945 MiB
#6 Accepted 7ms 7.949 MiB
#7 Accepted 7ms 7.949 MiB
#8 Accepted 7ms 7.949 MiB
#9 Accepted 7ms 7.941 MiB
#10 Accepted 7ms 7.941 MiB

信息

递交者
类型
递交
题目
P1150 关路灯
语言
C++
递交时间
2021-07-21 16:05:36
评测时间
2021-07-21 16:05:36
评测机
分数
100
总耗时
71ms
峰值内存
7.961 MiB