QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#51774#4888. Decoding The MessagelarryzhongTL 509ms3808kbC++172.7kb2022-10-04 00:32:512022-10-04 00:32:54

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 16ms
memory: 3800kb

input:

5
1
42 1
2
0 1
1 1
1
239 2
2
1 1
2 1
3
1 1
2 2
3 2

output:

42
256
514
1284
61726

result:

ok 5 number(s): "42 256 514 1284 61726"

Test #2:

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

input:

100
1
213 79
1
54 69
1
218 55
1
248 80
1
101 8
1
153 79
1
240 45
1
112 70
1
217 5
1
208 64
1
48 30
1
0 19
1
53 40
1
63 17
1
179 65
1
221 22
1
135 84
1
138 20
1
54 29
1
114 19
1
253 94
1
240 36
1
40 94
1
244 93
1
239 24
1
133 8
1
105 91
1
45 43
1
241 74
1
206 17
1
100 73
1
133 44
1
57 70
1
56 72
1
47...

output:

21846
21846
26215
59110
32896
6426
48060
59110
43570
32896
15420
0
59110
6426
26215
17476
15420
15420
21846
21846
32896
15420
59110
21846
54741
32896
48060
48060
32896
50116
26215
32896
15420
54741
6426
17476
15420
21846
54741
39321
54741
54741
6426
54741
1
59110
59110
26215
54741
15420
15420
22101
...

result:

ok 100 numbers

Test #3:

score: 0
Accepted
time: 345ms
memory: 3616kb

input:

100
1
208 74003161
1
108 37880052
1
102 289342450
1
190 16254190
1
20 507132853
1
1 842472902
1
212 226854721
1
33 797732105
1
213 114087750
1
128 914592259
1
27 779924279
1
203 425018504
1
217 458915584
1
139 710603120
1
226 84538604
1
50 602470204
1
150 228443262
1
48 593328022
1
24 35949157
1
148...

output:

1
54741
0
59110
26215
32896
1
48060
15420
1
21846
32896
32896
59110
32896
59110
15420
54741
21846
1
54741
26215
54741
32896
32896
54741
0
54741
21846
48060
32896
21846
32896
50116
50116
21846
15420
48060
59110
26215
15420
21846
1
54741
21846
48060
15420
54741
17476
48060
54741
6426
54741
59110
54741...

result:

ok 100 numbers

Test #4:

score: 0
Accepted
time: 509ms
memory: 3620kb

input:

100
2
14 231169007
169 438746441
1
106 224694504
1
11 18668998
1
94 173751742
1
248 424067991
1
132 301760918
1
192 82611030
1
165 348431335
2
25 205571031
27 312669004
1
244 137616146
2
199 365022194
197 490765328
2
151 270019586
159 158690083
1
169 403261990
1
246 138193758
2
38 426785000
53 20660...

output:

54741
54741
32896
32896
21846
54741
15420
48060
54741
32896
54741
32896
59110
54741
32896
26215
32896
59110
17476
32896
32896
32896
59110
32640
15420
43690
32896
21846
32896
32896
32896
59110
32896
15420
32896
54741
32896
32896
21846
26215
39321
54741
17476
1
32896
21846
48060
32896
32896
32896
1542...

result:

ok 100 numbers

Test #5:

score: -100
Time Limit Exceeded

input:

100
19
159 4447181
119 4122592
208 20865102
19 18177591
218 15143881
145 22831007
151 35147071
91 49145857
165 13456608
253 18740477
123 40212709
175 10592471
244 41909532
62 34807087
41 14303940
153 1925365
84 46161946
120 19515674
140 39567667
18
36 6939854
219 19270307
107 26811080
135 44704863
1...

output:


result: