QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#466207#7222. The Great HuntMaMengQiWA 1ms3736kbC++201.8kb2024-07-07 16:56:372024-07-07 16:56:38

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 1ms
memory: 3700kb

input:

10
2 1
3 1
6 1
8 2
4 3
9 6
5 4
7 8
10 7
8 7
10 2
7 2
10 1
3 1
5 2
5 1
6 1
9 2
3 4

output:

Yes
7 10 8 2 1 3 5 6 9 4

result:

ok 

Test #2:

score: 0
Accepted
time: 0ms
memory: 3712kb

input:

5
1 2
1 3
1 4
3 5
5 4
5 3
3 1
1 4
1 1

output:

No

result:

ok 

Test #3:

score: 0
Accepted
time: 1ms
memory: 3732kb

input:

100
19 1
49 19
13 49
5 13
98 5
27 98
76 27
38 76
67 38
14 67
75 14
44 75
9 44
45 9
82 45
57 82
16 57
18 16
37 18
3 37
50 3
42 50
32 42
60 32
48 60
10 48
90 10
93 90
25 93
94 25
78 94
51 78
40 51
86 40
85 86
23 85
87 23
83 87
7 83
28 7
88 28
2 88
56 2
47 56
79 47
97 79
95 97
39 95
73 39
55 73
8 55
46...

output:

Yes
66 51 98 28 31 4 93 39 20 53 49 55 59 75 43 23 68 67 42 5 33 41 73 100 50 40 81 97 80 77 54 87 16 95 83 56 7 6 88 79 38 94 60 69 32 2 47 86 74 84 11 85 78 14 34 36 19 70 13 91 64 45 44 89 62 8 46 65 10 12 71 58 76 15 27 3 82 99 90 25 29 18 35 48 52 61 57 37 96 26 24 21 9 92 72 63 17 30 1 22

result:

ok 

Test #4:

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

input:

100
71 1
3 71
19 3
96 19
68 96
18 68
76 18
67 76
59 67
9 59
81 9
46 81
94 46
95 94
87 95
93 87
33 93
61 33
69 61
37 69
23 37
36 23
90 36
54 90
51 54
50 51
91 50
34 91
45 34
64 45
48 64
12 48
78 12
75 78
16 75
39 16
28 39
58 28
92 58
82 92
77 82
11 77
72 11
24 72
44 24
57 44
55 57
17 55
7 17
10 7
53 ...

output:

No

result:

wrong answer