QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#743993#9528. New Energy Vehicleucup-team5405WA 167ms74348kbC++232.4kb2024-11-13 20:31:582024-11-13 20:31:59

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 0ms
memory: 3656kb

input:

2
3 1
3 3 3
8 1
2 2
5 2
1 2
2 1

output:

12
9

result:

ok 2 lines

Test #2:

score: 0
Accepted
time: 0ms
memory: 3612kb

input:

6
3 2
2 2 2
6 1
7 1
2 2
3 3
2 1
6 2
2 3
2 2
5 1
7 2
9 1
2 2
3 3
2 1
6 2
1 1
999999999
1000000000 1
1 1
1000000000
1000000000 1

output:

9
11
4
11
999999999
2000000000

result:

ok 6 lines

Test #3:

score: 0
Accepted
time: 100ms
memory: 67652kb

input:

10
230 8042
599 1039 69 1011 1366 824 14117 1523 806 5002 332 55 3769 996 359 1040 255 1135 3454 3609 6358 2509 3695 8785 3890 1304 3394 14611 33 89 2245 508 22 1043 10411 628 1279 714 903 585 7413 5099 845 148 4689 2110 8683 1613 143 3263 2599 110 244 3297 4742 1571 425 1822 15692 572 9397 328 1691...

output:

1543020
1578939
1526016
1527381
1547404
1564631
1051729
1548178
1114634
1072253

result:

ok 10 lines

Test #4:

score: 0
Accepted
time: 165ms
memory: 74348kb

input:

3
100000 100000
1 2 1 1 10 1 17 34 1 1 20 14 4 24 3 1 3 2 7 4 6 3 1 18 1 4 2 1 3 8 3 2 4 1 10 4 23 14 4 16 4 9 8 3 5 2 6 2 2 3 1 7 3 25 10 3 5 3 1 2 14 3 1 3 8 19 3 4 5 7 4 22 2 2 3 3 8 11 8 8 1 9 1 4 2 10 9 8 13 7 21 14 1 27 4 3 2 13 8 1 3 1 5 1 1 1 12 3 4 2 4 10 2 2 10 2 2 14 1 11 1 1 6 1 1 1 2 4 ...

output:

1117713
1116035
1092827

result:

ok 3 lines

Test #5:

score: 0
Accepted
time: 167ms
memory: 74320kb

input:

3
100000 100000
2086 178 3183 10562 8083 1408 4312 2370 4331 1721 2154 6155 7176 1991 30048 7425 9493 1709 7640 3726 182 2462 1597 2865 649 8069 3419 6510 8556 680 49 68 9820 13378 799 2489 1466 8877 8695 2235 915 2579 524 6615 20680 7704 4325 4696 8853 5492 1417 4342 1740 2355 2255 5297 15035 5003 ...

output:

1099515229
1100014648
1105660500

result:

ok 3 lines

Test #6:

score: 0
Accepted
time: 91ms
memory: 67456kb

input:

100
13 889
5025 26312 1491 20523 204842 40921 5217 25853 24382 141405 54635 22605 118412
322 6
947 11
1292 7
1623 12
2338 11
5106 10
6276 5
6431 13
7597 2
8146 7
8453 7
8584 4
8707 6
9101 9
9893 2
11005 4
11485 8
13038 13
14944 3
15446 10
15628 8
19159 11
22478 8
22578 4
22766 6
23126 9
23751 4
2428...

output:

1691613
1561310
1544245
1529735
1539251
1516799
1385996
1582874
1653896
1512971
1560229
1532528
1511543
1614493
1269091
1569271
1611465
1393316
1580864
1509906
1538109
1485451
1628468
1602748
1600142
1518899
1551518
1495938
1366971
1591610
1767676
1493664
1110409
1361629
1594253
1558880
1518585
1611...

result:

ok 100 lines

Test #7:

score: 0
Accepted
time: 92ms
memory: 67724kb

input:

1000
5 25
340189 81050 146130 30674 28622
4493 4
37984 2
52193 3
61793 2
115690 5
130543 5
245456 3
248978 5
264551 5
274211 4
415333 2
460810 4
480559 4
548296 5
637827 4
721031 1
727923 5
735966 3
813757 3
845720 1
852588 1
854790 4
936679 5
965839 3
999998 3
5 16
14297 156501 65755 250783 822
853...

output:

1626663
1488157
1658797
1514615
1569920
1428625
1530045
1785530
1630833
1749741
1479222
1678454
1440264
1324451
1768901
1238715
1622417
1656719
1658045
1692421
1480107
1601863
1513270
1502723
1826037
1469145
1462805
1794662
281197
1330591
1418537
1700673
1407186
789605
1583186
1499408
1304835
170747...

result:

ok 1000 lines

Test #8:

score: 0
Accepted
time: 142ms
memory: 68512kb

input:

10
20180 229
10148 49227 3843 153 4290 34764 34701 18885 15358 15899 881 25062 3770 33714 4232 41008 29727 11116 22490 92572 12789 62628 67428 191113 7685 6229 19779 9549 34234 36860 8595 3399 8212 27664 1382 27816 4834 69076 8584 133 64030 12322 593 53100 47435 3369 31823 12355 3711 16911 78835 144...

output:

559693183
1218003469
1598803079
898224085
1547381351
563887150
1546522404
1536309141
1101738239
1093558058

result:

ok 10 lines

Test #9:

score: 0
Accepted
time: 122ms
memory: 67552kb

input:

100
342 156
913960 4079852 649189 432970 689268 166660 1673461 3086988 1155793 323491 1232310 1125937 31382 1241850 2843192 1409651 1606731 721198 5947134 29213 939198 1467730 7092457 815300 661957 1838858 210075 209628 1821401 1036982 956032 1026935 2558267 17255 1383179 338339 164165 2620301 13902...

output:

756953535
622079977
1533136980
1264055765
1541075186
975519603
1559193490
597507281
666100672
851524913
1201706941
810252658
1554869863
721089934
1516532141
1425291751
886448674
738081523
587447150
561171730
615796742
1547786306
862593238
1213546308
932506599
1540467305
908747704
1558719619
13029464...

result:

ok 100 lines

Test #10:

score: -100
Wrong Answer
time: 114ms
memory: 67576kb

input:

1000
42 109
40217851 19466470 7719014 4345054 15606999 1508423 1234518 46056239 8865965 217424 42336640 64874 1419764 12393080 9347392 8499833 13309188 9872021 17560207 9032983 3356427 27415 23074015 6447268 2110983 22289544 43861116 2590127 4168502 333391 3099243 2675666 10445790 6620516 3870241 25...

output:

1453227375
845847326
885463645
577568893
761493832
607389485
1505827760
1452766438
1382804510
372863494
1617403670
1606620806
1604143316
690773755
1472651831
558573375
1499357839
563593611
1030042505
1560800741
664834121
1023372770
705427292
1388231856
1544521852
1269443894
1298026925
1601744722
115...

result:

wrong answer 38th lines differ - expected: '1591805672', found: '1602745439'