QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#189750#7505. BilliardwaifuSenpai#AC ✓79ms3588kbC++17277b2023-09-27 20:48:242023-09-27 20:48:26

詳細信息

Test #1:

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

input:

5
2 2
2 3
2 4
2 5
2 6

output:

4
12
8
20
12

result:

ok 5 number(s): "4 12 8 20 12"

Test #2:

score: 0
Accepted
time: 79ms
memory: 3588kb

input:

100000
669308197 625790677
309402658 883960814
154288189 163799396
169512282 927758946
37480140 679939211
638101705 830820808
849697397 511857001
128162256 837500527
418377194 190545353
124951845 974336011
255633368 725343901
307301176 504671996
849730549 744535846
306521588 89276096
39998531 431540...

output:

837693659444558738
273499825419443612
50544624336267688
52422178694124924
50968433639539080
1060296348268555280
869847122771852794
214671913883017824
159439660235758964
243490164448780590
370844208741777136
77543148932533648
1265309706343518908
13682525358180224
34521982853617308
309194370418458864
...

result:

ok 100000 numbers