QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#609677#9412. Stop the CastleUESTC_DebugSimulator#WA 5ms24720kbC++176.1kb2024-10-04 13:42:162024-10-04 13:42:17

详细

Test #1:

score: 100
Accepted
time: 2ms
memory: 24720kb

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: 5ms
memory: 24008kb

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
20 12
29 38
34 18
5
12 6
16 10
16 15
20 26
34 50
0
1
16 10
0
1
43 22
5
1 3
1 13
33 10
42 44
44 45
0
5
8 1
21 15
27 41
29 26
44 4
1
32 9
0
0
0
0
6
12 11
23 44
24 46
29 21
23 10
35 34
0
3
20 30
31 17
43 25
0
-1
3
17 39
25 7
16 36
0

result:

wrong answer There are still 8 pairs of castles which can attack each other (test case 21)