/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:47:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  scanf("%d", &n);
  ~~~~~^~~~~~~~~~
foo.cc:48:59: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  for(register int i = 1; i <= n; i++) scanf("%d", &a[i].h), a[i].id = i;
                                       ~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~
# 状态 耗时 内存占用
#1 Accepted 2ms 1.5 MiB
#2 Accepted 3ms 1.562 MiB
#3 Accepted 2ms 1.5 MiB
#4 Accepted 2ms 1.5 MiB
#5 Accepted 2ms 1.5 MiB
#6 Accepted 3ms 1.5 MiB
#7 Accepted 2ms 1.5 MiB
#8 Accepted 10ms 1.672 MiB
#9 Accepted 92ms 3.148 MiB
#10 Accepted 207ms 4.723 MiB

信息

递交者
类型
递交
题目
P1845 花匠
语言
C++
递交时间
2021-01-16 10:44:27
评测时间
2021-01-16 10:44:27
评测机
分数
100
总耗时
331ms
峰值内存
4.723 MiB