UOJ Logo

NOI.AC

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#125759#1188. Pell数列Mars100143ms36352kbC++530b2021-01-23 14:53:182021-01-23 14:53:20

answer


详细

小提示:点击横条可展开更详细的信息

Test #1:

score: 10
Accepted
time: 15ms
memory: 36352kb

input:

100
999999
999998
999997
999996
999995
999994
999993
999992
999991
999990
999989
999988
999987
99998...

output:

21600
17117
20133
9618
897
7824
18016
4559
8898
19530
2605
14320
6732
856
5020
23583
23388
9574
4240...

result:

ok 100 lines

Test #2:

score: 10
Accepted
time: 14ms
memory: 18828kb

input:

100
270230
710752
2663
1914
919
1645
2294
35896
763712
305932
1885
513556
295
2714
962966
655
513733...

output:

1094
15650
25341
18375
6175
29
25013
23161
18447
9574
5020
7754
29
15248
11489
897
22611
8218
2052
8...

result:

ok 100 lines

Test #3:

score: 10
Accepted
time: 13ms
memory: 17776kb

input:

100
513
2838
449
98681
87296
348
465389
871040
804663
999976
646
780
653
2519
129312
259851
150888
9...

output:

6732
18907
1
6175
32755
15652
2605
30389
6732
13613
23161
3038
20133
22352
13860
21600
18907
32359
8...

result:

ok 100 lines

Test #4:

score: 10
Accepted
time: 16ms
memory: 35956kb

input:

100
988314
2985
982
2185
650613
70
1561
727
113280
3095
669440
869216
303
553776
473296
3198
648102
...

output:

18375
31190
9574
5020
6732
31673
2605
14925
3038
897
30389
11489
5
2674
23161
15652
17115
8218
14439...

result:

ok 100 lines

Test #5:

score: 10
Accepted
time: 17ms
memory: 15696kb

input:

100
3087
2487
343592
988
105009
242400
629361
510184
277264
242960
218
15619
1135
937308
174478
7304...

output:

6732
6732
4559
14320
985
0
24421
21278
31911
17152
23193
6175
5020
4151
3253
17792
15650
0
2378
3167...

result:

ok 100 lines

Test #6:

score: 10
Accepted
time: 12ms
memory: 20548kb

input:

100
310814
2955
923
809088
613152
906160
1242
455
922636
1322
917114
969024
123644
407424
2814
25420...

output:

15248
31841
14925
18907
17115
2378
28616
29
17519
29514
15248
30093
25013
30093
18375
4151
14582
282...

result:

ok 100 lines

Test #7:

score: 10
Accepted
time: 18ms
memory: 27628kb

input:

100
723800
952
235270
1115
977540
566579
290136
446580
441237
708939
433324
1312
887298
762528
55796...

output:

5217
15650
31673
5020
30389
16276
14392
3038
6732
24421
16287
460
15652
29757
24421
6732
31190
29729...

result:

ok 100 lines

Test #8:

score: 10
Accepted
time: 11ms
memory: 22428kb

input:

100
563206
738494
1696
220
861552
561560
604
482758
287464
271368
51464
99182
26
402000
77636
1011
1...

output:

7754
25013
23161
31673
17115
17152
12
28208
31911
24549
15248
14975
16480
0
856
24421
20673
12094
15...

result:

ok 100 lines

Test #9:

score: 10
Accepted
time: 8ms
memory: 25132kb

input:

100
1492
296448
939668
835528
267099
207776
229671
784193
366
1019
314730
576166
112
73771
354051
29...

output:

32359
15652
23193
3253
21600
16480
14439
169
9184
22352
3038
12094
460
16276
21600
17115
32755
17117...

result:

ok 100 lines

Test #10:

score: 10
Accepted
time: 19ms
memory: 19064kb

input:

100
2390
2759
2787
2273
68
455216
877
626804
929072
704512
256
846160
81
2059
2648
424186
563168
157...

output:

30389
8898
6732
14925
23193
11489
14925
9606
29514
460
7754
2378
4240
22884
17117
17519
23193
19154
...

result:

ok 100 lines