QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#505629#3474. House of Cardsxiaowuc1AC ✓14ms10736kbPython360b2024-08-05 06:32:422024-08-05 06:32:44

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 9ms
memory: 10592kb

input:

2

output:

5

result:

ok single line: '5'

Test #2:

score: 0
Accepted
time: 8ms
memory: 10620kb

input:

42

output:

45

result:

ok single line: '45'

Test #3:

score: 0
Accepted
time: 7ms
memory: 10524kb

input:

1

output:

5

result:

ok single line: '5'

Test #4:

score: 0
Accepted
time: 10ms
memory: 10572kb

input:

3

output:

5

result:

ok single line: '5'

Test #5:

score: 0
Accepted
time: 14ms
memory: 10692kb

input:

5

output:

5

result:

ok single line: '5'

Test #6:

score: 0
Accepted
time: 14ms
memory: 10576kb

input:

6

output:

8

result:

ok single line: '8'

Test #7:

score: 0
Accepted
time: 10ms
memory: 10580kb

input:

8

output:

8

result:

ok single line: '8'

Test #8:

score: 0
Accepted
time: 8ms
memory: 10648kb

input:

9

output:

13

result:

ok single line: '13'

Test #9:

score: 0
Accepted
time: 14ms
memory: 10588kb

input:

25

output:

29

result:

ok single line: '29'

Test #10:

score: 0
Accepted
time: 14ms
memory: 10692kb

input:

48

output:

48

result:

ok single line: '48'

Test #11:

score: 0
Accepted
time: 10ms
memory: 10636kb

input:

43

output:

45

result:

ok single line: '45'

Test #12:

score: 0
Accepted
time: 10ms
memory: 10664kb

input:

74214

output:

74216

result:

ok single line: '74216'

Test #13:

score: 0
Accepted
time: 6ms
memory: 10596kb

input:

627402639875575291

output:

627402639875575293

result:

ok single line: '627402639875575293'

Test #14:

score: 0
Accepted
time: 9ms
memory: 10704kb

input:

841287401872373559

output:

841287401872373560

result:

ok single line: '841287401872373560'

Test #15:

score: 0
Accepted
time: 14ms
memory: 10576kb

input:

937251070470531449851203659

output:

937251070470531449851203661

result:

ok single line: '937251070470531449851203661'

Test #16:

score: 0
Accepted
time: 9ms
memory: 10636kb

input:

944968672517341405897356650

output:

944968672517341405897356653

result:

ok single line: '944968672517341405897356653'

Test #17:

score: 0
Accepted
time: 8ms
memory: 10576kb

input:

712325211587628045387076873982315605505725575198485813594218072723504174637625368353136462451948360792917071599012585968153954303374865686516496326965246106746342620942981775471504697121936656605117866558954502969993434767993317430554857126800713019881106286718885395996987634868959970811798174303879...

output:

712325211587628045387076873982315605505725575198485813594218072723504174637625368353136462451948360792917071599012585968153954303374865686516496326965246106746342620942981775471504697121936656605117866558954502969993434767993317430554857126800713019881106286718885395996987634868959970811798174303879...

result:

ok single line: '712325211587628045387076873982...2983121630349790598108553665960'

Test #18:

score: 0
Accepted
time: 14ms
memory: 10640kb

input:

292803099966376728928114140417143236713386615476926271944423706058499888116624013144928913239898491447297247292556707138729280144330921280190311800728120807021064113043388599755476017141361832808582393690964479800133064021168149297812610889196779513628587385741988744462872941942422380028832259488878...

output:

292803099966376728928114140417143236713386615476926271944423706058499888116624013144928913239898491447297247292556707138729280144330921280190311800728120807021064113043388599755476017141361832808582393690964479800133064021168149297812610889196779513628587385741988744462872941942422380028832259488878...

result:

ok single line: '292803099966376728928114140417...7512786158358774288863933864069'

Test #19:

score: 0
Accepted
time: 7ms
memory: 10588kb

input:

955679494515412326507355903728611145155295107663393544618618150359221185267603523059833212463841030845398213552535666528400024639945366874934536851598539304329280150169688644714244092373282929636279087340766046720888127449089633651297543031002797528714958207791289384739187922869744477164634388688453...

output:

955679494515412326507355903728611145155295107663393544618618150359221185267603523059833212463841030845398213552535666528400024639945366874934536851598539304329280150169688644714244092373282929636279087340766046720888127449089633651297543031002797528714958207791289384739187922869744477164634388688453...

result:

ok single line: '955679494515412326507355903728...0757178961823988709567261120184'

Test #20:

score: 0
Accepted
time: 14ms
memory: 10588kb

input:

944867207189548017895479628485768233265372165422147410284011305674377895757744425755259642821905292208027887138161876395061438029147666250866655305309137808408365621325580132828121985261533707535141370619934103860629140238841011271878676812147624906965436996741777530256047659402170834496139637477336...

output:

944867207189548017895479628485768233265372165422147410284011305674377895757744425755259642821905292208027887138161876395061438029147666250866655305309137808408365621325580132828121985261533707535141370619934103860629140238841011271878676812147624906965436996741777530256047659402170834496139637477336...

result:

ok single line: '944867207189548017895479628485...5014746216320965532131046447637'

Test #21:

score: 0
Accepted
time: 14ms
memory: 10588kb

input:

932354764369047080981501234394084805525966411398260664058886281464855599956614311390877175667933289926641159609517877976134771051147436630749303555850471352487290941020783561540855350050142484619228792108654052725110535292583807297916683770027855903845817747044649557969881914174806762874141173324506...

output:

932354764369047080981501234394084805525966411398260664058886281464855599956614311390877175667933289926641159609517877976134771051147436630749303555850471352487290941020783561540855350050142484619228792108654052725110535292583807297916683770027855903845817747044649557969881914174806762874141173324506...

result:

ok single line: '932354764369047080981501234394...4288363856241274382334295479445'

Test #22:

score: 0
Accepted
time: 14ms
memory: 10700kb

input:

154610153480553038388010570776842149027017195528720612124006627210636285492282779768494979409469375629714781072296102186760279299797859637452703648076126671934980525087941687050294233467212517422852808967088306052186309825779304114448275105556547675381134202946449572078047794087330685185921627564723...

output:

154610153480553038388010570776842149027017195528720612124006627210636285492282779768494979409469375629714781072296102186760279299797859637452703648076126671934980525087941687050294233467212517422852808967088306052186309825779304114448275105556547675381134202946449572078047794087330685185921627564723...

result:

ok single line: '154610153480553038388010570776...3519596130689767288649432259352'

Test #23:

score: 0
Accepted
time: 14ms
memory: 10624kb

input:

100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

output:

100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok single line: '100000000000000000000000000000...0000000000000000000000000000000'

Test #24:

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

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok single line: '100000000000000000000000000000...0000000000000000000000000000000'

Test #25:

score: 0
Accepted
time: 10ms
memory: 10704kb

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

100000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000...

result:

ok single line: '100000000000000000000000000000...0000000000000000000000000000000'

Test #26:

score: 0
Accepted
time: 14ms
memory: 10576kb

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok single line: '999999999999999999999999999999...9999999999999999999999999999997'

Test #27:

score: 0
Accepted
time: 14ms
memory: 10620kb

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok single line: '999999999999999999999999999999...9999999999999999999999999999997'

Test #28:

score: 0
Accepted
time: 14ms
memory: 10648kb

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok single line: '999999999999999999999999999999...9999999999999999999999999999997'

Test #29:

score: 0
Accepted
time: 10ms
memory: 10700kb

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok single line: '999999999999999999999999999999...9999999999999999999999999999997'

Test #30:

score: 0
Accepted
time: 7ms
memory: 10736kb

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok single line: '999999999999999999999999999999...9999999999999999999999999999997'

Test #31:

score: 0
Accepted
time: 14ms
memory: 10588kb

input:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

output:

999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999...

result:

ok single line: '999999999999999999999999999999...9999999999999999999999999999992'