QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#827487#9910. 颠倒歌ntherner#21 704ms24216kbC++205.2kb2024-12-23 00:07:432024-12-23 00:07:44

詳細信息

Subtask #1:

score: 10
Accepted

Test #1:

score: 10
Accepted
time: 33ms
memory: 5512kb

input:

1
4 7
1 7
4 1
2 3
2 6
5 4
7 2
5 7
7 3
1 2
4 1
4 3
5 6
5 4
2 4
3 5
7 2
2 6
1 7
1 7
6 4
5 2
3 6
3 1
4 5

output:

9

result:

ok single line: '9'

Test #2:

score: 10
Accepted
time: 3ms
memory: 3736kb

input:

0
3 6
6 4
1 3
4 1
5 2
4 5
6 4
3 1
2 5
3 4
5 4
4 1
3 1
5 2
5 4
6 4

output:

2

result:

ok single line: '2'

Test #3:

score: 10
Accepted
time: 704ms
memory: 24116kb

input:

0
3 8
3 2
5 4
1 2
3 6
5 7
5 2
8 3
8 3
1 2
2 5
6 3
2 4
7 5
3 2
8 3
5 2
2 4
3 6
3 2
1 2
5 7

output:

4

result:

ok single line: '4'

Test #4:

score: 10
Accepted
time: 700ms
memory: 24216kb

input:

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

output:

262144

result:

ok single line: '262144'

Subtask #2:

score: 4
Accepted

Test #5:

score: 4
Accepted
time: 1ms
memory: 6580kb

input:

0
1 189
77 175
145 175
4 175
92 175
175 33
175 125
175 185
157 175
186 175
115 175
113 175
38 175
175 138
175 133
175 48
175 128
175 66
175 34
175 148
150 175
175 104
175 84
175 59
175 154
80 175
176 175
135 175
55 175
139 175
175 132
175 91
13 175
175 110
155 175
175 60
175 184
73 175
152 175
83 17...

output:

5245226

result:

ok single line: '5245226'

Test #6:

score: 4
Accepted
time: 1ms
memory: 4472kb

input:

0
1 183
23 70
23 123
23 75
149 23
142 23
14 23
23 99
23 36
23 73
23 29
23 153
56 23
165 23
82 23
110 23
167 23
18 23
119 23
23 146
93 23
23 176
89 23
23 10
50 23
117 23
40 23
23 115
23 4
139 23
177 23
53 23
132 23
23 84
151 23
154 23
31 23
23 120
183 23
26 23
5 23
23 65
43 23
23 182
23 118
169 23
15...

output:

114478935

result:

ok single line: '114478935'

Test #7:

score: 4
Accepted
time: 1ms
memory: 6476kb

input:

0
1 194
182 96
78 182
182 109
161 182
26 182
194 182
31 182
99 182
182 65
39 182
182 77
159 182
136 182
182 85
182 125
83 182
167 182
182 112
121 182
63 182
11 182
182 145
182 60
182 45
108 182
182 13
24 182
168 182
140 182
182 88
27 182
182 30
182 75
182 155
182 119
80 182
182 56
182 14
52 182
182 ...

output:

608479208

result:

ok single line: '608479208'

Test #8:

score: 4
Accepted
time: 0ms
memory: 6348kb

input:

0
1 200
158 157
158 58
9 158
154 158
104 158
14 158
158 111
158 120
169 158
35 158
98 158
158 174
188 158
192 158
158 72
158 115
145 158
149 158
55 158
6 158
155 158
17 158
158 181
158 162
132 158
158 177
158 195
82 158
158 31
53 158
158 52
158 193
158 127
158 73
158 168
81 158
158 164
158 60
158 99...

output:

325306908

result:

ok single line: '325306908'

Subtask #3:

score: 0
Wrong Answer

Dependency #2:

100%
Accepted

Test #9:

score: 0
Wrong Answer
time: 0ms
memory: 6464kb

input:

0
1 200
115 118
97 44
127 197
71 198
116 38
16 58
166 129
200 92
40 136
44 146
37 117
153 59
28 122
139 76
191 104
84 49
22 138
124 98
131 141
151 45
41 9
80 147
159 165
123 13
31 54
199 167
52 33
54 158
142 95
36 101
59 195
35 50
130 44
178 5
192 64
52 21
106 21
171 81
66 35
18 15
39 33
131 126
64 ...

output:

325306908

result:

wrong answer 1st lines differ - expected: '480827728', found: '325306908'

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: 7
Accepted

Test #25:

score: 7
Accepted
time: 0ms
memory: 3652kb

input:

1
1 156
69 74
65 126
110 16
134 129
3 22
78 5
140 23
53 138
109 67
82 74
42 57
23 143
12 112
7 13
154 105
100 118
63 28
41 37
145 25
80 142
111 148
81 85
133 13
104 89
83 14
39 24
120 97
98 131
94 55
107 91
38 130
122 36
2 32
82 94
35 49
40 108
68 146
101 130
101 76
105 58
80 137
152 87
78 66
32 55
...

output:

261947439

result:

ok single line: '261947439'

Test #26:

score: 7
Accepted
time: 0ms
memory: 3604kb

input:

1
1 168
140 135
69 51
33 66
138 48
168 90
102 43
137 98
117 21
88 131
29 14
117 157
77 78
85 88
119 32
114 68
55 67
160 166
12 149
155 85
20 113
132 149
131 19
97 139
22 78
16 157
151 143
99 156
159 71
72 119
161 163
68 28
101 89
27 133
96 146
125 44
151 24
14 114
116 111
89 25
115 138
46 1
51 47
40...

output:

260505142

result:

ok single line: '260505142'

Test #27:

score: 7
Accepted
time: 0ms
memory: 3784kb

input:

1
1 155
77 28
89 81
138 11
85 7
124 53
29 52
116 32
151 66
103 80
145 77
82 51
116 138
141 144
57 20
34 101
14 84
75 68
42 64
95 117
117 137
122 33
76 50
12 71
112 44
134 83
134 18
105 10
75 122
106 94
84 69
1 123
140 10
70 71
78 133
24 152
87 13
9 31
135 142
101 146
149 129
28 16
52 39
26 119
146 3...

output:

252700555

result:

ok single line: '252700555'

Test #28:

score: 7
Accepted
time: 0ms
memory: 3604kb

input:

1
1 200
24 110
97 182
163 183
115 67
21 193
168 118
88 19
10 150
33 76
15 184
138 131
166 143
151 167
17 60
188 92
110 33
9 65
186 74
198 170
144 161
69 134
179 189
191 70
64 79
10 84
65 107
66 149
123 191
184 141
107 30
170 129
159 186
108 132
17 68
46 198
158 41
13 55
101 59
20 72
200 63
128 23
89...

output:

85910356

result:

ok single line: '85910356'

Subtask #8:

score: 0
Wrong Answer

Dependency #7:

100%
Accepted

Test #29:

score: 0
Wrong Answer
time: 1ms
memory: 5660kb

input:

1
1 170
104 123
43 65
8 61
169 138
20 160
34 169
133 25
129 2
115 137
64 168
33 35
77 38
128 166
159 151
78 3
155 34
6 140
16 133
26 117
13 143
144 150
7 131
64 61
162 52
149 16
17 80
136 77
141 83
54 146
85 47
140 24
107 158
91 152
66 43
24 21
86 38
141 85
51 11
162 151
2 66
73 74
9 26
156 68
121 1...

output:

72517498

result:

wrong answer 1st lines differ - expected: '83894725', found: '72517498'

Subtask #9:

score: 0
Skipped

Dependency #8:

0%

Subtask #10:

score: 0
Skipped

Dependency #9:

0%

Subtask #11:

score: 0
Skipped

Dependency #10:

0%