QOJ.ac

QOJ

ID题目提交者结果用时内存语言文件大小提交时间测评时间
#494460#5006. HeximalssmyTL 14ms10656kbPython3132b2024-07-27 15:53:002024-07-27 15:53:01

Judging History

你现在查看的是最新测评结果

  • [2024-07-27 15:53:01]
  • 评测
  • 测评结果:TL
  • 用时:14ms
  • 内存:10656kb
  • [2024-07-27 15:53:00]
  • 提交

answer

n = float(input())
cnt = 0
if n == 0:
    print(1)
else:
    while n != 0:
        n //= 6
        cnt += 1
    print(cnt)

詳細信息

Test #1:

score: 100
Accepted
time: 7ms
memory: 10512kb

input:

0

output:

1

result:

ok single line: '1'

Test #2:

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

input:

1865

output:

5

result:

ok single line: '5'

Test #3:

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

input:

6

output:

2

result:

ok single line: '2'

Test #4:

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

input:

5

output:

1

result:

ok single line: '1'

Test #5:

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

input:

216

output:

4

result:

ok single line: '4'

Test #6:

score: -100
Time Limit Exceeded

input:

659048550435237232393875796171343597297252783860791224966151609834498375660891507785647188078990198766575546966667938541517709208360385263203130845215396367798902376853652489767206051858708602045962531467486884777174160264291462611744982439094276291073422016146183934443085743192727084631329374278797...

output:


result: