/ Vijos /

记录详情

Wrong Answer

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 2ms 384.0 KiB
#2 Accepted 2ms 384.0 KiB
#3 Accepted 1ms 384.0 KiB
#4 Accepted 3ms 384.0 KiB
#5 Wrong Answer Read 28, expect 29. 2ms 384.0 KiB
#6 Wrong Answer Read 21, expect 22. 2ms 384.0 KiB
#7 Accepted 3ms 384.0 KiB
#8 Accepted 75ms 384.0 KiB
#9 Accepted 2ms 384.0 KiB
#10 Wrong Answer Read 3, expect 4. 1ms 384.0 KiB
#11 Accepted 1ms 384.0 KiB
#12 Accepted 1ms 384.0 KiB

信息

递交者
类型
递交
题目
P1020 切蛋糕
语言
C++
递交时间
2021-12-25 09:53:56
评测时间
2021-12-25 09:53:56
评测机
分数
90
总耗时
102ms
峰值内存
384.0 KiB