记录详情

Wrong Answer

foo.c: In function 'main':
foo.c:29:5: warning: implicit declaration of function 'scanf' [-Wimplicit-function-declaration]
   29 |     scanf("%d", &n);
      |     ^~~~~
foo.c:1:1: note: include '<stdio.h>' or provide a declaration of 'scanf'
  +++ |+#include <stdio.h>
    1 | int maxRP2(int n, int x[], int y[]) {
foo.c:29:5: warning: incompatible implicit declaration of built-in function 'scanf' [-Wbuiltin-declaration-mismatch]
   29 |     scanf("%d", &n);
      |     ^~~~~
foo.c:29:5: note: include '<stdio.h>' or provide a declaration of 'scanf'
foo.c:42:5: warning: implicit declaration of function 'printf' [-Wimplicit-function-declaration]
   42 |     printf("%d\n", result);
      |     ^~~~~~
foo.c:42:5: note: include '<stdio.h>' or provide a declaration of 'printf'
foo.c:42:5: warning: incompatible implicit declaration of built-in function 'printf' [-Wbuiltin-declaration-mismatch]
foo.c:42:5: note: include '<stdio.h>' or provide a declaration of 'printf'
[Hydro](https://hydro.ac)提供评测服务
# 状态 耗时 内存占用
#1 Wrong Answer Read 188, expect 270. 2ms 284.0 KiB
#2 Wrong Answer Read 146, expect 202. 2ms 284.0 KiB
#3 Wrong Answer Read 160, expect 220. 2ms 284.0 KiB
#4 Wrong Answer Read 170, expect 207. 2ms 284.0 KiB
#5 Wrong Answer Read 168, expect 252. 1ms 284.0 KiB
#6 Wrong Answer Read 163, expect 251. 1ms 284.0 KiB
#7 Wrong Answer Read 212, expect 254. 2ms 284.0 KiB
#8 Wrong Answer Read 140, expect 223. 1ms 284.0 KiB
#9 Wrong Answer Read 207, expect 249. 1ms 284.0 KiB
#10 Wrong Answer Read 162, expect 193. 1ms 284.0 KiB
#11 Accepted 1ms 284.0 KiB
#12 Wrong Answer Read 198, expect 224. 2ms 284.0 KiB
#13 Wrong Answer Read 49, expect 240. 4ms 284.0 KiB
#14 Wrong Answer Read -1, expect 150. 3ms 272.0 KiB
#15 Wrong Answer Read 53, expect 78. 2ms 284.0 KiB
#16 Wrong Answer Read -1, expect 90. 2ms 220.0 KiB
#17 Wrong Answer Read 116, expect 285. 2ms 208.0 KiB
#18 Wrong Answer Read -1, expect 0. 2ms 284.0 KiB
#19 Accepted 1ms 284.0 KiB
#20 Wrong Answer Read -1, expect 28. 2ms 284.0 KiB

信息

递交者
类型
递交
题目
P1524 Problem 3B. RP++
比赛
2023秋 悬赏令第三周
语言
C
递交时间
2023-10-22 20:34:22
评测时间
2023-10-23 16:01:15
评测机
分数
10
总耗时
46ms
峰值内存
284.0 KiB