QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#504018#4705. Bringing Order to Disorderxiaowuc1AC ✓647ms35436kbC++172.0kb2024-08-04 04:02:422024-08-04 04:02:42

详细

Test #1:

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

input:

55

output:

63

result:

ok single line: '63'

Test #2:

score: 0
Accepted
time: 258ms
memory: 16076kb

input:

99987623221121

output:

46264724673153

result:

ok single line: '46264724673153'

Test #3:

score: 0
Accepted
time: 297ms
memory: 23588kb

input:

785993348487

output:

984446000768

result:

ok single line: '984446000768'

Test #4:

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

input:

038133025

output:

36447138

result:

ok single line: '36447138'

Test #5:

score: 0
Accepted
time: 2ms
memory: 3904kb

input:

26969

output:

92398

result:

ok single line: '92398'

Test #6:

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

input:

00000000000000

output:

0

result:

ok single line: '0'

Test #7:

score: 0
Accepted
time: 228ms
memory: 15548kb

input:

00014555745575

output:

17732196021114

result:

ok single line: '17732196021114'

Test #8:

score: 0
Accepted
time: 212ms
memory: 15776kb

input:

9980558329203

output:

6529602226871

result:

ok single line: '6529602226871'

Test #9:

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

input:

6

output:

6

result:

ok single line: '6'

Test #10:

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

input:

834283

output:

572604

result:

ok single line: '572604'

Test #11:

score: 0
Accepted
time: 231ms
memory: 15508kb

input:

00022445555777

output:

17732196022269

result:

ok single line: '17732196022269'

Test #12:

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

input:

2

output:

2

result:

ok single line: '2'

Test #13:

score: 0
Accepted
time: 368ms
memory: 23060kb

input:

00174385456784

output:

46242002997862

result:

ok single line: '46242002997862'

Test #14:

score: 0
Accepted
time: 113ms
memory: 8692kb

input:

8004723121716

output:

552943247695

result:

ok single line: '552943247695'

Test #15:

score: 0
Accepted
time: 297ms
memory: 19196kb

input:

99997712221226

output:

67389848929746

result:

ok single line: '67389848929746'

Test #16:

score: 0
Accepted
time: 1ms
memory: 3720kb

input:

53337

output:

43747

result:

ok single line: '43747'

Test #17:

score: 0
Accepted
time: 200ms
memory: 16912kb

input:

973478421866

output:

869177480629

result:

ok single line: '869177480629'

Test #18:

score: 0
Accepted
time: 2ms
memory: 4116kb

input:

939440

output:

593526

result:

ok single line: '593526'

Test #19:

score: 0
Accepted
time: 235ms
memory: 17964kb

input:

0024445567778

output:

5191498528221

result:

ok single line: '5191498528221'

Test #20:

score: 0
Accepted
time: 262ms
memory: 16312kb

input:

99971212227272

output:

46493351790228

result:

ok single line: '46493351790228'

Test #21:

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

input:

11111111111111

output:

40073759

result:

ok single line: '40073759'

Test #22:

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

input:

09

output:

45

result:

ok single line: '45'

Test #23:

score: 0
Accepted
time: 647ms
memory: 35436kb

input:

55555555555555

output:

75541805807055

result:

ok single line: '75541805807055'

Test #24:

score: 0
Accepted
time: 405ms
memory: 29592kb

input:

99999999999999

output:

99999999999999

result:

ok single line: '99999999999999'

Test #25:

score: 0
Accepted
time: 81ms
memory: 10000kb

input:

11664896330

output:

39684703975

result:

ok single line: '39684703975'

Test #26:

score: 0
Accepted
time: 38ms
memory: 7428kb

input:

887836704

output:

881845935

result:

ok single line: '881845935'

Test #27:

score: 0
Accepted
time: 34ms
memory: 6072kb

input:

8078330540

output:

2110524570

result:

ok single line: '2110524570'

Test #28:

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

input:

20

output:

4

result:

ok single line: '4'

Test #29:

score: 0
Accepted
time: 255ms
memory: 16196kb

input:

99985553311112

output:

46493352028660

result:

ok single line: '46493352028660'

Test #30:

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

input:

14175219

output:

23779062

result:

ok single line: '23779062'

Test #31:

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

input:

4918384

output:

7620532

result:

ok single line: '7620532'

Test #32:

score: 0
Accepted
time: 338ms
memory: 19456kb

input:

03216528293176

output:

23485356904753

result:

ok single line: '23485356904753'

Test #33:

score: 0
Accepted
time: 233ms
memory: 17364kb

input:

593414786146

output:

666984555145

result:

ok single line: '666984555145'

Test #34:

score: 0
Accepted
time: 1ms
memory: 3852kb

input:

6597

output:

9444

result:

ok single line: '9444'

Test #35:

score: 0
Accepted
time: 19ms
memory: 5292kb

input:

129910461

output:

185920027

result:

ok single line: '185920027'

Test #36:

score: 0
Accepted
time: 234ms
memory: 13296kb

input:

40451037782041

output:

5600851191159

result:

ok single line: '5600851191159'

Test #37:

score: 0
Accepted
time: 422ms
memory: 22092kb

input:

60856274052282

output:

29166708636582

result:

ok single line: '29166708636582'

Test #38:

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

input:

5

output:

5

result:

ok single line: '5'

Test #39:

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

input:

32

output:

20

result:

ok single line: '20'

Test #40:

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

input:

0

output:

0

result:

ok single line: '0'

Test #41:

score: 0
Accepted
time: 147ms
memory: 10536kb

input:

8220152445156

output:

1037582863637

result:

ok single line: '1037582863637'

Test #42:

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

input:

755

output:

776

result:

ok single line: '776'

Test #43:

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

input:

46

output:

61

result:

ok single line: '61'

Test #44:

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

input:

125

output:

147

result:

ok single line: '147'

Test #45:

score: 0
Accepted
time: 17ms
memory: 6052kb

input:

36246983

output:

74112131

result:

ok single line: '74112131'

Test #46:

score: 0
Accepted
time: 40ms
memory: 7116kb

input:

376576190

output:

647558705

result:

ok single line: '647558705'

Test #47:

score: 0
Accepted
time: 34ms
memory: 5588kb

input:

52291403510

output:

3332437397

result:

ok single line: '3332437397'

Test #48:

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

input:

9

output:

9

result:

ok single line: '9'