QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#376720#4088. 총 쏘기ahihi12340 111ms10984kbC++204.5kb2024-04-04 15:46:162024-04-04 15:46:17

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Wrong Answer

Test #1:

score: 17
Accepted
time: 1ms
memory: 3804kb

input:

8
4 3 8 2 1 7 6 5

output:

4
4 8
3 7
2 6
1 5

result:

ok Correct

Test #2:

score: -17
Wrong Answer
time: 1ms
memory: 5824kb

input:

16
12 16 11 15 10 9 8 4 14 13 7 2 6 5 3 1

output:

8
12 16
11 15
10 14
9 13
8 7
6 4
5 2
3 1

result:

wrong answer Incorrect

Subtask #2:

score: 0
Time Limit Exceeded

Test #26:

score: 12
Accepted
time: 0ms
memory: 5824kb

input:

8
5 6 7 1 2 8 3 4

output:

4
5 6
7 8
1 2
3 4

result:

ok Correct

Test #27:

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

input:

16
2 4 5 1 9 10 3 6 14 7 8 11 12 16 13 15

output:

8
2 4
5 9
10 14
16 1
6 11
12 7
3 8
13 15

result:

ok Correct

Test #28:

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

input:

16
2 3 1 8 12 4 5 6 7 14 15 9 10 16 11 13

output:

8
2 3
8 12
14 15
16 1
4 5
6 7
9 10
11 13

result:

ok Correct

Test #29:

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

input:

16
3 5 1 6 8 9 2 11 12 4 7 14 15 10 16 13

output:

8
3 5
6 8
9 11
12 14
15 16
1 2
7 4
13 10

result:

ok Correct

Test #30:

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

input:

16
1 7 2 3 9 11 4 5 6 12 15 8 10 16 13 14

output:

8
7 9
11 12
15 16
1 2
3 4
5 6
10 8
13 14

result:

ok Correct

Test #31:

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

input:

16
6 7 8 1 9 2 3 4 11 12 5 10 13 14 15 16

output:

8
6 7
8 9
11 12
1 2
3 4
13 14
15 16
10 5

result:

ok Correct

Test #32:

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

input:

16
1 6 2 7 8 9 10 13 3 4 5 11 14 12 16 15

output:

8
6 7
8 9
10 13
14 16
1 2
11 12
3 4
5 15

result:

ok Correct

Test #33:

score: 0
Accepted
time: 3ms
memory: 6184kb

input:

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

output:

248
5 6
7 9
10 12
13 15
17 18
19 20
24 26
27 29
30 31
33 34
35 39
40 43
44 47
48 53
56 57
60 62
63 65
69 71
72 74
77 80
81 84
87 88
89 90
92 96
97 98
99 102
105 106
110 111
112 114
119 120
123 126
127 129
132 133
136 137
143 144
150 151
152 154
156 157
158 160
162 163
167 169
173 174
178 180
183 195...

result:

ok Correct

Test #34:

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

input:

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

output:

248
5 6
8 9
11 13
14 16
19 21
24 26
29 31
32 33
35 39
41 44
47 48
51 54
55 56
58 59
60 67
68 70
74 75
76 77
81 83
85 86
88 89
90 92
94 96
100 101
104 107
110 111
112 113
116 119
121 122
123 127
128 129
130 131
133 134
136 138
139 140
142 143
147 148
149 152
156 161
162 164
165 166
168 173
174 175
17...

result:

ok Correct

Test #35:

score: 0
Accepted
time: 3ms
memory: 6228kb

input:

497
6 1 2 10 11 3 12 4 15 5 7 8 16 17 18 19 21 25 26 30 31 9 32 13 14 20 33 35 37 40 41 43 22 45 23 46 24 27 49 50 28 52 53 29 54 58 59 34 36 38 39 42 44 47 61 48 51 63 55 67 68 69 56 57 72 60 62 77 78 79 80 64 65 82 85 87 88 66 89 91 98 102 70 104 71 111 112 113 117 118 120 73 125 129 130 74 75 131...

output:

249
6 10
11 12
15 16
17 18
19 21
25 26
30 31
32 33
35 37
40 41
43 45
46 49
50 52
53 54
58 59
61 63
67 68
69 72
77 78
79 80
82 85
87 88
89 91
98 102
104 111
112 113
117 118
120 125
129 130
131 133
143 147
148 149
150 151
152 153
154 155
156 157
158 162
163 164
168 169
170 171
172 173
178 180
181 182
...

result:

ok Correct

Test #36:

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

input:

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

output:

249
2 8
10 11
12 15
17 21
22 24
27 28
31 32
35 40
42 47
50 51
52 53
54 55
56 59
61 63
65 67
69 70
72 75
76 80
81 84
85 88
89 91
93 94
97 98
99 100
102 103
105 107
110 112
113 117
118 119
121 123
125 130
133 134
137 141
142 144
145 147
149 154
156 159
161 163
164 165
168 169
172 173
174 175
176 177
1...

result:

ok Correct

Test #37:

score: 0
Accepted
time: 3ms
memory: 6204kb

input:

499
5 7 11 12 13 1 17 18 20 22 24 2 3 25 26 27 4 29 31 6 32 33 8 9 10 14 15 34 35 16 19 21 23 28 41 30 36 37 42 45 38 39 46 49 40 50 51 43 52 44 47 48 54 59 53 65 55 67 68 71 56 57 74 75 78 79 58 81 86 87 88 89 60 91 61 98 99 100 102 103 112 62 113 63 114 64 115 116 66 117 69 120 70 121 72 122 124 7...

output:

250
5 7
11 12
13 17
18 20
22 24
25 26
27 29
31 32
33 34
35 41
42 45
46 49
50 51
52 54
59 65
67 68
71 74
75 78
79 81
86 87
88 89
91 98
99 100
102 103
112 113
114 115
116 117
120 121
122 124
125 128
130 133
137 143
144 145
153 155
159 160
161 162
163 164
166 168
169 174
176 178
182 186
189 190
191 194...

result:

ok Correct

Test #38:

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

input:

500
1 4 10 12 13 15 17 18 2 20 23 27 3 28 29 5 30 6 7 8 9 11 31 33 14 35 16 36 37 38 39 19 40 42 21 48 49 53 55 56 58 59 60 22 24 62 63 65 25 66 69 26 32 71 75 34 41 78 79 81 82 83 86 43 44 88 90 45 46 47 91 92 50 51 93 52 94 97 98 99 54 100 101 57 61 102 104 105 108 64 109 67 110 68 70 112 72 113 1...

output:

250
4 10
12 13
15 17
18 20
23 27
28 29
30 31
33 35
36 37
38 39
40 42
48 49
53 55
56 58
59 60
62 63
65 66
69 71
75 78
79 81
82 83
86 88
90 91
92 93
94 97
98 99
100 101
102 104
105 108
109 110
112 113
115 118
120 121
127 133
138 139
140 146
147 149
153 155
156 157
158 159
160 161
162 165
166 168
173 1...

result:

ok Correct

Test #39:

score: 0
Accepted
time: 110ms
memory: 10744kb

input:

7495
1 3 5 7 8 2 10 4 11 13 6 14 17 9 21 12 15 23 25 26 16 18 31 19 20 32 35 36 37 42 22 45 46 24 27 28 47 48 49 29 51 52 58 60 30 33 34 38 62 63 39 40 64 65 66 70 72 73 41 74 43 75 77 44 50 53 78 79 54 81 82 55 56 83 57 87 88 89 93 59 61 67 68 97 69 100 102 107 108 110 112 113 118 119 120 71 124 12...

output:

3748
3 5
7 8
10 11
13 14
17 21
23 25
26 31
32 35
36 37
42 45
46 47
48 49
51 52
58 60
62 63
64 65
66 70
72 73
74 75
77 78
79 81
82 83
87 88
89 93
97 100
102 107
108 110
112 113
118 119
120 124
125 128
129 131
133 134
135 137
138 140
142 146
149 150
151 152
153 155
157 160
161 164
166 167
170 173
177 ...

result:

ok Correct

Test #40:

score: 0
Accepted
time: 106ms
memory: 10984kb

input:

7496
4 8 9 14 16 1 19 2 3 5 6 20 21 23 7 25 32 10 33 34 35 36 38 11 39 12 40 13 15 17 43 45 46 47 18 48 51 54 22 58 61 24 62 67 68 26 27 28 72 29 73 75 76 80 30 81 31 37 41 42 82 83 44 85 49 87 50 91 100 52 53 55 56 57 101 103 104 105 106 59 107 109 112 60 63 64 114 122 65 124 66 126 69 70 71 74 127...

output:

3748
4 8
9 14
16 19
20 21
23 25
32 33
34 35
36 38
39 40
43 45
46 47
48 51
54 58
61 62
67 68
72 73
75 76
80 81
82 83
85 87
91 100
101 103
104 105
106 107
109 112
114 122
124 126
127 129
131 139
142 143
146 147
151 152
153 155
156 159
160 161
163 165
166 167
168 169
171 177
180 181
182 185
187 188
190...

result:

ok Correct

Test #41:

score: 0
Accepted
time: 106ms
memory: 10696kb

input:

7497
4 1 7 11 14 15 18 22 2 23 3 5 26 34 35 6 8 36 38 9 10 12 13 39 40 43 44 45 16 17 47 48 49 19 50 57 59 60 20 21 24 25 62 27 28 64 67 68 29 30 31 71 76 77 79 32 81 33 82 84 85 86 87 88 37 41 90 92 93 95 42 96 97 103 105 46 51 52 53 107 108 109 110 54 55 111 112 113 56 115 58 61 63 117 65 118 119 ...

output:

3749
4 7
11 14
15 18
22 23
26 34
35 36
38 39
40 43
44 45
47 48
49 50
57 59
60 62
64 67
68 71
76 77
79 81
82 84
85 86
87 88
90 92
93 95
96 97
103 105
107 108
109 110
111 112
113 115
117 118
119 122
124 125
127 128
130 131
132 134
135 136
138 143
145 146
147 149
150 151
152 153
154 155
158 159
168 172...

result:

ok Correct

Test #42:

score: 0
Accepted
time: 108ms
memory: 10748kb

input:

7498
4 5 6 1 9 2 3 7 8 13 10 16 17 20 21 25 11 26 28 12 14 15 18 19 22 23 24 30 31 27 33 29 32 39 48 34 35 49 36 51 37 54 38 40 55 41 56 42 43 57 58 59 44 61 64 65 45 71 46 47 50 52 72 53 73 77 78 60 62 88 92 93 63 66 95 99 67 68 100 69 70 74 75 101 76 79 102 103 106 80 81 109 115 116 117 82 120 124...

output:

3749
4 5
6 9
13 16
17 20
21 25
26 28
30 31
33 39
48 49
51 54
55 56
57 58
59 61
64 65
71 72
73 77
78 88
92 93
95 99
100 101
102 103
106 109
115 116
117 120
124 125
127 131
133 134
135 139
141 143
144 146
148 149
151 153
154 155
156 158
160 163
164 165
166 169
170 172
173 175
177 181
182 183
184 185
1...

result:

ok Correct

Test #43:

score: 0
Accepted
time: 111ms
memory: 10824kb

input:

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

output:

3750
2 3
5 8
14 20
22 23
25 26
34 38
39 40
41 44
45 46
51 53
54 59
61 62
63 64
65 66
67 68
69 72
73 74
80 83
85 87
88 89
90 92
93 97
101 102
103 105
106 109
111 112
113 116
117 118
119 122
123 125
126 130
132 133
134 135
136 137
139 140
143 145
147 149
151 152
154 155
157 160
162 163
164 165
171 177...

result:

ok Correct

Test #44:

score: 0
Accepted
time: 109ms
memory: 10780kb

input:

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

output:

3750
4 6
14 16
17 18
21 22
23 24
27 31
32 35
39 40
41 42
44 49
52 54
55 58
59 61
62 67
68 69
72 73
74 75
76 80
82 84
85 88
91 93
94 95
97 98
99 102
107 108
109 112
113 116
117 118
124 125
132 134
136 140
141 144
146 147
148 150
152 153
157 159
161 163
168 170
171 172
174 176
178 179
180 182
184 185
...

result:

ok Correct

Test #45:

score: -12
Time Limit Exceeded

input:

99995
4 5 6 8 10 1 11 2 3 14 16 19 21 7 22 9 24 26 27 12 29 31 35 43 13 47 15 17 48 18 51 20 23 25 28 52 53 55 30 56 58 32 60 61 33 34 36 63 37 38 64 65 39 66 70 40 72 77 86 88 89 41 42 44 45 46 91 49 93 94 95 98 100 50 101 54 102 103 57 59 62 67 104 108 68 112 116 117 118 119 69 120 71 73 74 123 12...

output:

Unauthorized output

result:


Subtask #3:

score: 0
Wrong Answer

Test #51:

score: 9
Accepted
time: 2ms
memory: 5840kb

input:

1
1

output:

1
1 1

result:

ok Correct

Test #52:

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

input:

2
1 2

output:

1
1 2

result:

ok Correct

Test #53:

score: -9
Wrong Answer
time: 1ms
memory: 5844kb

input:

2
2 1

output:

1
2 1

result:

wrong answer Incorrect

Subtask #4:

score: 0
Skipped

Dependency #3:

0%

Subtask #5:

score: 0
Skipped

Dependency #4:

0%

Subtask #6:

score: 0
Skipped

Dependency #5:

0%

Subtask #7:

score: 0
Skipped

Dependency #1:

0%