/ Vijos /

记录详情

Accepted

foo.cc: In function 'int main()':
foo.cc:50:11: warning: suggest parentheses around '+' inside '>>' [-Wparentheses]
   50 |   mid = l + r >> 1;
      |         ~~^~~
foo.cc:39:9: warning: unused variable 'j' [-Wunused-variable]
   39 |  int i, j, l, r, mid, ans = 0;
      |         ^
foo.cc:40:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   40 |  scanf("%d", &n);
      |  ~~~~~^~~~~~~~~~
foo.cc:42:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   42 |   scanf("%d", &c[i]);
      |   ~~~~~^~~~~~~~~~~~~
foo.cc:43:7: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   43 |  scanf("%d", &m);
      |  ~~~~~^~~~~~~~~~
foo.cc:45:8: warning: ignoring return value of 'int scanf(const char*, ...)', declared with attribute warn_unused_result [-Wunused-result]
   45 |   scanf("%d", &p[i]);
      |   ~~~~~^~~~~~~~~~~~~
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Accepted 3ms 384.0 KiB
#2 Accepted 3ms 384.0 KiB
#3 Accepted 4ms 384.0 KiB
#4 Accepted 7ms 512.0 KiB
#5 Accepted 10ms 384.0 KiB
#6 Accepted 8ms 384.0 KiB
#7 Accepted 2ms 384.0 KiB
#8 Accepted 98ms 504.0 KiB
#9 Accepted 3ms 384.0 KiB
#10 Accepted 2ms 384.0 KiB
#11 Accepted 3ms 384.0 KiB
#12 Accepted 2ms 384.0 KiB

信息

递交者
类型
递交
题目
P1020 切蛋糕
语言
C++
递交时间
2021-12-25 09:54:23
评测时间
2021-12-25 09:54:23
评测机
分数
120
总耗时
150ms
峰值内存
512.0 KiB