QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#503057#3596. New Mathsxiaowuc1AC ✓58ms40384kbJava81.3kb2024-08-03 16:05:482024-08-03 16:05:48

详细

Test #1:

score: 100
Accepted
time: 48ms
memory: 38428kb

input:

6

output:

4

result:

ok single line: '4'

Test #2:

score: 0
Accepted
time: 55ms
memory: 39000kb

input:

149

output:

17

result:

ok single line: '17'

Test #3:

score: 0
Accepted
time: 47ms
memory: 38468kb

input:

123476544

output:

11112

result:

ok single line: '11112'

Test #4:

score: 0
Accepted
time: 46ms
memory: 40384kb

input:

15

output:

-1

result:

ok single line: '-1'

Test #5:

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

input:

255768423183

output:

-1

result:

ok single line: '-1'

Test #6:

score: 0
Accepted
time: 56ms
memory: 38644kb

input:

45665732555

output:

-1

result:

ok single line: '-1'

Test #7:

score: 0
Accepted
time: 54ms
memory: 38564kb

input:

129862724660409

output:

11450607

result:

ok single line: '11450607'

Test #8:

score: 0
Accepted
time: 57ms
memory: 39348kb

input:

423019449793954427977

output:

-1

result:

ok single line: '-1'

Test #9:

score: 0
Accepted
time: 46ms
memory: 39748kb

input:

27121

output:

-1

result:

ok single line: '-1'

Test #10:

score: 0
Accepted
time: 43ms
memory: 37800kb

input:

1062062012267214086

output:

1086309746

result:

ok single line: '1086309746'

Test #11:

score: 0
Accepted
time: 46ms
memory: 38464kb

input:

7121439534552006831

output:

-1

result:

ok single line: '-1'

Test #12:

score: 0
Accepted
time: 46ms
memory: 40300kb

input:

2331

output:

-1

result:

ok single line: '-1'

Test #13:

score: 0
Accepted
time: 53ms
memory: 37868kb

input:

664

output:

42

result:

ok single line: '42'

Test #14:

score: 0
Accepted
time: 39ms
memory: 39272kb

input:

48960202843634584

output:

270467972

result:

ok single line: '270467972'

Test #15:

score: 0
Accepted
time: 48ms
memory: 38228kb

input:

950191368742123

output:

-1

result:

ok single line: '-1'

Test #16:

score: 0
Accepted
time: 52ms
memory: 39144kb

input:

6838729832825874768072709

output:

4195767732753

result:

ok single line: '4195767732753'

Test #17:

score: 0
Accepted
time: 46ms
memory: 38340kb

input:

126412441

output:

16521

result:

ok single line: '16521'

Test #18:

score: 0
Accepted
time: 52ms
memory: 38436kb

input:

4466447004844686806

output:

2609442604

result:

ok single line: '2609442604'

Test #19:

score: 0
Accepted
time: 48ms
memory: 38484kb

input:

4

output:

2

result:

ok single line: '2'

Test #20:

score: 0
Accepted
time: 58ms
memory: 40348kb

input:

90074858599988014

output:

-1

result:

ok single line: '-1'

Test #21:

score: 0
Accepted
time: 45ms
memory: 39004kb

input:

9498578088490196330623

output:

-1

result:

ok single line: '-1'

Test #22:

score: 0
Accepted
time: 49ms
memory: 37784kb

input:

82

output:

-1

result:

ok single line: '-1'

Test #23:

score: 0
Accepted
time: 45ms
memory: 38448kb

input:

8925123681749359895

output:

-1

result:

ok single line: '-1'

Test #24:

score: 0
Accepted
time: 45ms
memory: 38464kb

input:

9008004

output:

3008

result:

ok single line: '3008'