记录详情

Accepted

foo.cc: In function 'void solve()':
foo.cc:113:30: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
  113 |                 int mid = l+r+1 >> 1;
      |                           ~~~^~
foo.cc:107:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  107 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
foo.cc:109:22: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  109 |                 scanf("%d%d",a+i,b+i);
      |                 ~~~~~^~~~~~~~~~~~~~~~
foo.cc: In function 'int main()':
foo.cc:128:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
  128 |         scanf("%d",&t);
      |         ~~~~~^~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 2ms 384.0 KiB
#4 Accepted 2ms 384.0 KiB
#5 Accepted 2ms 384.0 KiB
#6 Accepted 2ms 384.0 KiB
#7 Accepted 3ms 384.0 KiB
#8 Accepted 3ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Accepted 4ms 384.0 KiB
#11 Accepted 382ms 1.863 MiB
#12 Accepted 288ms 1.867 MiB
#13 Accepted 241ms 1.867 MiB
#14 Accepted 246ms 1.867 MiB
#15 Accepted 339ms 1.738 MiB
#16 Accepted 423ms 1.742 MiB
#17 Accepted 125ms 888.0 KiB
#18 Accepted 410ms 1.742 MiB
#19 Accepted 258ms 1.367 MiB
#20 Accepted 307ms 1.867 MiB

信息

递交者
类型
递交
题目
P1315 Let's throw a party
比赛
2022迎新春赛
语言
C++
递交时间
2022-02-03 02:12:40
评测时间
2022-02-03 02:12:40
评测机
分数
100
总耗时
3051ms
峰值内存
1.867 MiB