QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#38938#1269. New EquipmentsHuangHanShengAC ✓23ms4928kbC++172.1kb2022-07-08 10:29:502022-07-08 10:29:53

詳細信息

Test #1:

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

input:

1
3 5
2 3 10
2 -3 10
1 -1 4

output:

4 15 37 

result:

ok single line: '4 15 37 '

Test #2:

score: 0
Accepted
time: 23ms
memory: 4928kb

input:

10
50 50
2 -16 79
8 -21 54
8 -1 3
1 -7 47
5 -20 89
1 -2 47
2 -10 26
10 31 28
2 -16 37
6 -16 44
2 -8 100
3 -26 65
3 -6 91
10 -33 56
2 -7 22
2 -12 74
1 -3 7
7 -30 51
1 -4 8
1 -10 62
2 -5 5
1 -3 38
7 -32 57
4 -24 65
1 -8 97
7 -28 71
5 -13 71
2 -14 49
6 -33 100
2 7 69
8 -22 38
5 -23 88
7 20 57
7 -11 83
...

output:

2 4 9 14 24 40 72 117 170 239 327 445 592 771 972 1202 1467 1772 2117 2506 2954 3461 4035 4690 5415 6223 7137 8145 9272 10499 11858 13366 15003 16798 18736 20810 23058 25517 28172 31062 34194 37566 41209 45136 49371 53924 58847 64143 69813 75884 
4 9 17 25 33 43 57 78 107 146 194 266 356 461 590 744...

result:

ok 10 lines