QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#561470#240. Period Sequence5un_xiaomivita_mbox100 ✓552ms3772kbC++172.6kb2024-09-12 22:52:092024-09-12 22:52:10

詳細信息


Pretests


Final Tests

Test #1:

score: 100
Accepted
time: 552ms
memory: 3772kb

input:

430
6 914575 1823342
2 14 26 32 80 98
6 968417 1985938
1 59 28 25 79 60
4 153020 1466079
71 34 10 2
10 996221 1688188
22 42 59 69 92 72 52 52 82 72
6 142341 1628756
91 19 55 43 49 79
2 860345 1156551
74 40
9 276848 1604010
76 12 40 30 83 20 58 97 76
5 886718 1121954
92 57 47 32 42
10 602581 1020483
...

output:

859394676
559509681
787220196
693198410
563990423
919827834
799518457
61584895
313931966
663921331
760107172
283514211
582538287
52316335
811913179
28918969
768328262
95583791
489827987
612318061
362003880
544647001
965717551
928791871
620709166
551257293
115499760
586947052
849302014
299179050
4607...

result:

ok 430 lines