记录详情

Wrong Answer

foo.cc: In function 'int main()':
foo.cc:29:24: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   29 |             int mid=l+r+1>>1;
      |                     ~~~^~
foo.cc:21:10: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   21 |     scanf("%d",&T);
      |     ~~~~~^~~~~~~~~
foo.cc:24:14: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   24 |         scanf("%d",&n);
      |         ~~~~~^~~~~~~~~
foo.cc:25:36: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   25 |         for(int i=1;i<=n;i++) scanf("%d%d",&a[i],&b[i]);
      |                               ~~~~~^~~~~~~~~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 2ms 384.0 KiB
#2 Wrong Answer Read 28, expect 26. 2ms 384.0 KiB

信息

递交者
类型
自测
题目
P1315 Let's throw a party
语言
C++
递交时间
2022-02-02 23:32:53
评测时间
2022-02-02 23:32:53
评测机
分数
10
总耗时
4ms
峰值内存
384.0 KiB