记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:17:15: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   17 |   int n; scanf("%d",&n);
      |          ~~~~~^~~~~~~~~
foo.cc:24:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   24 |   scanf("%d",&x);
      |   ~~~~~^~~~~~~~~
foo.cc:19:31: warning: iteration 2000009 invokes undefined behavior [-Waggressive-loop-optimizations]
   19 |  for(int i=1; i<=N; i++) p[i] = i;
      |                          ~~~~~^~~
foo.cc:19:16: note: within this loop
   19 |  for(int i=1; i<=N; i++) p[i] = i;
      |               ~^~~
正在同步测试数据,请稍后
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 12ms 8.0 MiB
#2 Accepted 12ms 8.0 MiB
#3 Accepted 14ms 8.0 MiB
#4 Accepted 14ms 8.0 MiB
#5 Accepted 12ms 8.0 MiB
#6 Accepted 26ms 8.262 MiB
#7 Accepted 26ms 8.242 MiB
#8 Accepted 262ms 13.242 MiB
#9 Accepted 465ms 13.242 MiB
#10 Accepted 338ms 14.617 MiB

信息

递交者
类型
递交
题目
P1330 修改数组
比赛
2022春季 荣誉练习赛1(2019蓝桥A组省赛重温)
语言
C++
递交时间
2022-03-19 18:00:44
评测时间
2022-03-19 18:00:59
评测机
分数
100
总耗时
1186ms
峰值内存
14.617 MiB