QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#625984#9412. Stop the CastleHuangHanShengWA 1ms3860kbC++176.1kb2024-10-09 22:10:402024-10-09 22:10:40

详细

Test #1:

score: 100
Accepted
time: 0ms
memory: 3860kb

input:

4
7
1 3
6 6
4 7
2 1
6 3
4 1
2 6
3
3 4
6 4
3 1
2
1 1
2 2
0
3
1 1
1 3
3 3
1
1 2
3
1 1
1 3
2 3
0

output:

2
2 3
4 6
0
1
2 3
-1

result:

ok ok 4 cases (4 test cases)

Test #2:

score: -100
Wrong Answer
time: 1ms
memory: 3648kb

input:

21
11
3 5
18 6
19 12
27 48
28 38
30 12
33 18
42 18
43 38
45 46
48 34
3
2 6
24 4
41 45
15
11 6
15 27
16 9
16 14
16 48
19 26
25 12
27 26
28 4
31 40
32 6
33 50
37 50
46 11
50 29
17
1 49
4 9
9 15
9 22
11 31
11 46
14 28
17 5
17 49
18 43
20 31
30 46
33 11
33 33
34 15
36 6
47 10
2
16 46
36 30
11
7 34
7 41
...

output:

3
29 38
34 18
20 12
5
16 15
16 10
1 0
1 0
34 50
0
1
16 10
0
1
43 22
5
44 45
33 10
1 13
1 3
1 0
0
5
44 4
29 26
27 41
1 0
1 0
1
32 9
0
0
0
0
6
29 21
23 44
12 11
1 0
23 10
35 34
0
3
43 25
20 30
1 0
0
-1
3
25 7
1 0
16 36
6
6 4
5 5
1 0
1 0
7 5
8 11

result:

wrong answer Integer parameter [name=y_i] equals to 0, violates the range [1, 10^9] (test case 2)