/ WHOJ /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:24:9: warning: suggest parentheses around '-' in operand of '&' [-Wparentheses]
   24 |     if(k-i&1)
      |        ~^~
foo.cc:8:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
    8 |  scanf("%d%d",&n,&k);
      |  ~~~~~^~~~~~~~~~~~~~
foo.cc:10:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   10 |   scanf("%d%d",&a[i],&b[i]);
      |   ~~~~~^~~~~~~~~~~~~~~~~~~~
正在同步测试数据,请稍后
Found 10 testcases.
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 19ms 2.75 MiB
#2 Accepted 7ms 896.0 KiB
#3 Accepted 10ms 1.75 MiB
#4 Accepted 14ms 2.625 MiB
#5 Accepted 3ms 1.375 MiB
#6 Accepted 8ms 1.75 MiB
#7 Accepted 39ms 2.5 MiB
#8 Accepted 224ms 3.75 MiB
#9 Accepted 5ms 384.0 KiB
#10 Accepted 12ms 1.125 MiB

信息

递交者
类型
递交
题目
P1442 皇室战争
题目数据
下载
语言
C++
递交时间
2022-08-01 21:32:27
评测时间
2022-08-01 21:32:27
评测机
分数
100
总耗时
345ms
峰值内存
3.75 MiB