QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#189654#7055. A Hard Problemnew_dawn_2#TL 12ms58328kbC++201.8kb2023-09-27 19:09:222023-09-27 19:09:23

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 12ms
memory: 58328kb

input:

4
2
3
4
5

output:

2
3
3
4

result:

ok 4 lines

Test #2:

score: -100
Time Limit Exceeded

input:

100000
6
18
54
162
486
1458
4374
13122
39366
118098
354294
1062882
3188646
9565938
28697814
86093442
258280326
774840978
324522916
973568748
920706226
762118660
286355962
859067886
577203640
731610911
194832715
584498145
753494426
260483260
781449780
344349322
33047957
99143871
297431613
892294839
6...

output:

4
8
17
38
93
232
598
1562
4144
11144
30317
83025
229434
637683
1782137
5003638
14107188
39917588
17505945
49571184
47013793
39295900
15552391
44022798
30195534
37803035
10808710
30557096
38874072
14220784
40240462
18516309
2034403
5714999
16120763
45635520
35116861
1895923
5324061
15014266
42493704
...

result: