QOJ.ac
QOJ
ID | 题目 | 提交者 | 结果 | 用时 | 内存 | 语言 | 文件大小 | 提交时间 | 测评时间 |
---|---|---|---|---|---|---|---|---|---|
#287285 | #4207. Uplifting Excursion | helllloworld# | 40 | 120ms | 4360kb | C++14 | 3.3kb | 2023-12-20 10:31:11 | 2024-07-04 03:13:48 |
Due to the privacy settings of the submitter, you are not allowed to view this code.
详细
Subtask #1:
score: 0
Wrong Answer
Test #1:
score: 5
Accepted
time: 1ms
memory: 3652kb
input:
1 5 0 0 6
output:
5
result:
ok single line: '5'
Test #2:
score: 0
Accepted
time: 0ms
memory: 3656kb
input:
50 2303 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 3 5 25 50 0
output:
47
result:
ok single line: '47'
Test #3:
score: -5
Wrong Answer
time: 0ms
memory: 3644kb
input:
50 -17964 18 21 8 47 11 30 0 34 11 22 10 29 14 39 25 42 16 47 6 39 0 4 28 5 4 39 43 47 14 49 24 37 22 47 23 31 18 28 43 14 44 26 46 40 27 17 41 7 13 25 27 20 17 13 23 30 9 16 5 25 46 22 35 44 34 39 19 19 33 11 30 30 41 20 1 9 39 34 31 26 28 13 13 21 45 11 32 30 35 37 22 31 1 9 43 18 31 41 34 39 2
output:
result:
wrong answer 1st lines differ - expected: '2060', found: ''
Subtask #2:
score: 0
Skipped
Dependency #1:
0%
Subtask #3:
score: 10
Accepted
Test #19:
score: 10
Accepted
time: 1ms
memory: 3716kb
input:
30 38887954194235 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 444113827766 26 511237030935 22 696666627923 315938808146 20 952560827478 924020644151 850666790939 23 587888300072 23 797812801251 911390834853 677171102320 4 2 22 950650764450 278888113729 23 15 15 13 9 637120041802 20 1...
output:
5692035643249
result:
ok single line: '5692035643249'
Test #20:
score: 0
Accepted
time: 0ms
memory: 3660kb
input:
30 76226675150141 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 6 17 25 575187266854 933205256851 30642958327 5 723752635947 251949849516 20 241825198172 10 8 19 416001319998 846220673515 292065146547 9 17 329305181338 3 153818277782 4 622464956364 2 18 543111965233 5 20 24 8
output:
5959550686625
result:
ok single line: '5959550686625'
Test #21:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
30 783 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 842682060204 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 3 5 5 812222496404 0
output:
842682060231
result:
ok single line: '842682060231'
Test #22:
score: 0
Accepted
time: 1ms
memory: 3664kb
input:
30 63681107909129 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 26 29 28 25 28 162867113393 396607890615 26 27 29 27 29 29 98874364794 27 26 28 25 28 298317942689 473749524449 27 29 25 29 738708341359 378923162064 903755880355 985915633657 113061161327 29
output:
3130974862204
result:
ok single line: '3130974862204'
Test #23:
score: 0
Accepted
time: 1ms
memory: 3604kb
input:
30 1000000001687 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 11 999999999991 13 317621530099 581606427561 21 5 7 27 6 459097506433 15 6 29 13 29 9 25 11 10 23 17 14 6 25 11 21 10 5 16 19
output:
1000000000571
result:
ok single line: '1000000000571'
Test #24:
score: 0
Accepted
time: 0ms
memory: 3588kb
input:
30 24647168232979 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 28 25 4 19 26 4 18 66088673790 8 137263321820 624543357354 491056742273 36762815810 79008946641 16 54849098117 18 417863353158 0 0 0 0 0 22 0 0 0 1 3 21
output:
1907436309137
result:
ok single line: '1907436309137'
Test #25:
score: 0
Accepted
time: 0ms
memory: 3720kb
input:
30 50595799989746 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 22 0 6 7 969584275447 0 509040037625 0 0 717396586408 0 0 0 2 0 0 18 0 0 0 508214812962
output:
impossible
result:
ok single line: 'impossible'
Test #26:
score: 0
Accepted
time: 1ms
memory: 3656kb
input:
30 8938647816682 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 27 841672536785 8 15 6 5 2 291166519149 19 673201071629 27 23 8 14 8 0 0 0 0 0 0 16 0 0 0 0 1 4 26 0 0
output:
1806040127724
result:
ok single line: '1806040127724'
Test #27:
score: 0
Accepted
time: 0ms
memory: 3596kb
input:
30 783 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 437848852200 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 59617155335 820747192009 0
output:
437848852227
result:
ok single line: '437848852227'
Subtask #4:
score: 0
Wrong Answer
Dependency #3:
100%
Accepted
Test #28:
score: 0
Wrong Answer
time: 0ms
memory: 3528kb
input:
30 39213329349296 0 0 15 8 0 0 22 17 0 25 0 0 6 0 26 352775533402 821667446696 0 25 29 0 0 10 0 0 0 0 0 0 0 0 0 0 0 29 0 0 0 0 19 138752731241 0 0 423291311437 27 0 0 0 25 0 291045502006 884931905517 0 18 0 0 19 0 0 273052928628 0
output:
result:
wrong answer 1st lines differ - expected: 'impossible', found: ''
Subtask #5:
score: 10
Accepted
Dependency #3:
100%
Accepted
Test #33:
score: 10
Accepted
time: 1ms
memory: 3668kb
input:
50 189795810534810 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 313141557634 32 46 6 28 887354981148 14 44 12 20 43 17 26 7 4 10 31 949343918387 49 4 24 407749755183 31 257715063142 327447392280 43 45 44 743164723251 9 18 26 30 23 245461734009...
output:
6966098559940
result:
ok single line: '6966098559940'
Test #34:
score: 0
Accepted
time: 0ms
memory: 3612kb
input:
50 162793587689945 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 28 49 10 16 181647722325 418865782618 167607836490 11023993029 46 321757623147 920049739697 6 11 924667078128 24 572740962884 17 919364419713 245267047300 26 265163915124 2385433252...
output:
8886043681855
result:
ok single line: '8886043681855'
Test #35:
score: 0
Accepted
time: 1ms
memory: 3688kb
input:
50 180427406969095 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 9 0 0 0 0 0 0 0 44 0 757097945924 747479558719 0 6 0 0 7 0 0 26 0 40 0 23 0 0 43562847026 0 521212175813 726627224608 0 0 0 163678416426 17 0 46 0 0 37 0 0 449830466494 684368...
output:
impossible
result:
ok single line: 'impossible'
Test #36:
score: 0
Accepted
time: 1ms
memory: 3620kb
input:
50 162264235060284 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 29 12 23 22 28 344376427231 42 874772962088 790393734936 306581895113 6 26 11 3 26 21 43 47 269220369454 43 5 345450372379 10 29 34 33 17 19 20 752714818476 33 45 498618944539 28 58...
output:
6534324936751
result:
ok single line: '6534324936751'
Test #37:
score: 0
Accepted
time: 0ms
memory: 3684kb
input:
50 47542388424288 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 49 48 84084484851 45 46 47 47 324104869061 11267101107 47 46 906425375031 48 48 46 45 119282476941 47 46 46 61726730293 46 647879629493 735405858271 48 45 392358979795 46 49 95217015...
output:
2918404549000
result:
ok single line: '2918404549000'
Test #38:
score: 0
Accepted
time: 1ms
memory: 3676kb
input:
50 1000000007812 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 111845393485 999999999998 18 29 204836561797 47 39 19 3 19 855441894498 179123849518 21 10 210989782789 923799603417 37 27 20 11 29 132679431725 550824570490 982033241762 30 22 7 6 35...
output:
1111845395452
result:
ok single line: '1111845395452'
Subtask #6:
score: 0
Skipped
Dependency #5:
100%
Accepted
Dependency #4:
0%
Subtask #7:
score: 10
Accepted
Dependency #5:
100%
Accepted
Test #43:
score: 10
Accepted
time: 4ms
memory: 3796kb
input:
100 394538310508924 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 296814641583 99 766040278887 99 98 784800424771 754434030874 95 97 98 8210609717...
output:
13654520787055
result:
ok single line: '13654520787055'
Test #44:
score: 0
Accepted
time: 3ms
memory: 3668kb
input:
100 835194212883671 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 3 85967827770 71 8 621187021996 836249677467 1 40 23 44 25 45 58 300454027422 59...
output:
17253748255729
result:
ok single line: '17253748255729'
Test #45:
score: 0
Accepted
time: 4ms
memory: 3664kb
input:
100 1000000062500 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 27 1000000000000 36 41 311249292170 95184455669 23 14 95 67 59 146429481216 226271...
output:
1000000015680
result:
ok single line: '1000000015680'
Test #46:
score: 0
Accepted
time: 1ms
memory: 3784kb
input:
100 346290784522547 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 16 0 0 0 0 0 35 0 0 20 0 0 0 552751035545 74 0 0 20 67 0...
output:
impossible
result:
ok single line: 'impossible'
Test #47:
score: 0
Accepted
time: 3ms
memory: 3680kb
input:
100 411650308553953 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 714899912968 626946551128 85 689747904544 912829520692 776419722685 63 78 88 368...
output:
12971397743871
result:
ok single line: '12971397743871'
Test #48:
score: 0
Accepted
time: 3ms
memory: 3676kb
input:
100 438502937700410 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 81 16 233520635985 334233650348 737756563729 24 746895710458 95 136026547109 66 ...
output:
11241469640245
result:
ok single line: '11241469640245'
Subtask #8:
score: 0
Skipped
Dependency #6:
0%
Subtask #9:
score: 10
Accepted
Dependency #7:
100%
Accepted
Test #53:
score: 10
Accepted
time: 63ms
memory: 4356kb
input:
300 6977308455072172 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
51988129888639
result:
ok single line: '51988129888639'
Test #54:
score: 0
Accepted
time: 37ms
memory: 4336kb
input:
300 2753330070442135 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
impossible
result:
ok single line: 'impossible'
Test #55:
score: 0
Accepted
time: 2ms
memory: 4284kb
input:
300 88803 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
160908001289
result:
ok single line: '160908001289'
Test #56:
score: 0
Accepted
time: 120ms
memory: 4344kb
input:
300 1623629946038823 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
20626558582725
result:
ok single line: '20626558582725'
Test #57:
score: 0
Accepted
time: 1ms
memory: 4284kb
input:
300 88803 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 ...
output:
971173945802
result:
ok single line: '971173945802'
Test #58:
score: 0
Accepted
time: 82ms
memory: 4360kb
input:
300 5899183195616932 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
44044543118165
result:
ok single line: '44044543118165'
Test #59:
score: 0
Accepted
time: 77ms
memory: 4360kb
input:
300 8157049043941955 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0...
output:
55053569659071
result:
ok single line: '55053569659071'
Subtask #10:
score: 0
Skipped
Dependency #1:
0%