QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#858991#9675. 电池检测QOJQOJQOJ0 0ms0kbPython394b2025-01-17 11:40:042025-01-17 11:40:04

Judging History

你现在查看的是最新测评结果

  • [2025-01-17 11:40:04]
  • 评测
  • 测评结果:0
  • 用时:0ms
  • 内存:0kb
  • [2025-01-17 11:40:04]
  • 提交

answer

exec("print(sum(range(int(input().split()[1])+1,0,1-int(input().split()[0]))));"*int(input()))

Details

Tip: Click on the bar to expand more detailed information

Subtask #1:

score: 0
Runtime Error

Test #1:

score: 0
Runtime Error

input:

3
2 1
3 1
2 2

output:

2

result:


Subtask #2:

score: 0
Runtime Error

Test #3:

score: 0
Runtime Error

input:

1000
2 1
2 2
2 3
2 4
2 5
2 6
2 7
2 8
2 9
2 10
2 11
2 12
2 13
2 14
2 15
2 16
2 17
2 18
2 19
2 20
2 21
2 22
2 23
2 24
2 25
2 26
2 27
2 28
2 29
2 30
2 31
2 32
2 33
2 34
2 35
2 36
2 37
2 38
2 39
2 40
2 41
2 42
2 43
2 44
2 45
2 46
2 47
2 48
2 49
2 50
2 51
2 52
2 53
2 54
2 55
2 56
2 57
2 58
2 59
2 60
2 61...

output:

3
10
21
36
55
78
105
136
171
210
253
300
351
406
465
528
595
666
741
820
903
990
1081
1176
1275
1378
1485
1596
1711
1830
1953
2080
2211
2346
2485
2628
2775
2926
3081
3240
3403
3570
3741
3916
4095
4278
4465
4656
4851
5050
5253
5460
5671
5886
6105
6328
6555
6786
7021
7260
7503
7750
8001
8256
8515
8778...

result:


Subtask #3:

score: 0
Runtime Error

Test #4:

score: 0
Runtime Error

input:

1000
3 1
3 2
3 3
3 4
3 5
3 6
3 7
3 8
3 9
3 10
3 11
3 12
3 13
3 14
3 15
3 16
3 17
3 18
3 19
3 20
3 21
3 22
3 23
3 24
3 25
3 26
3 27
3 28
3 29
3 30
3 31
3 32
3 33
3 34
3 35
3 36
3 37
3 38
3 39
3 40
3 41
3 42
3 43
3 44
3 45
3 46
3 47
3 48
3 49
3 50
3 51
3 52
3 53
3 54
3 55
3 56
3 57
3 58
3 59
3 60
3 61...

output:

2
6
12
20
30
42
56
72
90
110
132
156
182
210
240
272
306
342
380
420
462
506
552
600
650
702
756
812
870
930
992
1056
1122
1190
1260
1332
1406
1482
1560
1640
1722
1806
1892
1980
2070
2162
2256
2352
2450
2550
2652
2756
2862
2970
3080
3192
3306
3422
3540
3660
3782
3906
4032
4160
4290
4422
4556
4692
48...

result:


Subtask #4:

score: 0
Runtime Error

Test #5:

score: 0
Runtime Error

input:

1000
907 241
495 435
227 139
616 1
433 35
588 407
533 322
995 961
748 310
212 36
968 500
294 187
375 371
307 14
648 180
122 28
304 253
818 812
41 5
286 62
573 340
547 224
347 35
279 56
151 85
626 410
456 248
578 470
11 6
952 771
404 302
77 27
168 40
524 517
171 147
407 294
268 106
100 27
549 196
973...

output:

242
140
36
323
411
709
438
241
254
6
341
36
86
249
7
756
41
148
115
197
35
236
714
465
70
141
38
884
96
130
233
815
981
56
544
379
2310
131
179
417
60
7
392
381
122
410
1641
100
163
129
70
13
91
161
140
13
267
215
166
1500
91
390
441
129
156
323
61
278
114
124
3
493
976
26
1441
131
145
285
207
234
5...

result:


Subtask #5:

score: 0
Skipped

Dependency #1:

0%

Subtask #6:

score: 0
Skipped

Dependency #5:

0%

Subtask #7:

score: 0
Skipped

Dependency #1:

0%