QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#189731#7055. A Hard Problemnew_dawn_2#TL 1ms3572kbC++203.3kb2023-09-27 20:19:352023-09-27 20:19:36

詳細信息

Test #1:

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

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:


result: