QOJ.ac

QOJ

IDProblemSubmitterResultTimeMemoryLanguageFile sizeSubmit timeJudge time
#60930#5006. HeximalJesRE 23ms7060kbPython2142b2022-11-08 14:53:162022-11-08 14:53:18

Judging History

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

  • [2023-08-10 23:21:45]
  • System Update: QOJ starts to keep a history of the judgings of all the submissions.
  • [2022-11-08 14:53:18]
  • 评测
  • 测评结果:RE
  • 用时:23ms
  • 内存:7060kb
  • [2022-11-08 14:53:16]
  • 提交

answer

import math

s = int(input())
a = 1
if s == 0:
    print(1)
else:
    print(int(round(100000000*math.log(s*1.0, 6.0))/100000000) + 1)

Details

Tip: Click on the bar to expand more detailed information

Test #1:

score: 100
Accepted
time: 2ms
memory: 6764kb

input:

0

output:

1

result:

ok single line: '1'

Test #2:

score: 0
Accepted
time: 15ms
memory: 6984kb

input:

1865

output:

5

result:

ok single line: '5'

Test #3:

score: 0
Accepted
time: 4ms
memory: 7060kb

input:

6

output:

2

result:

ok single line: '2'

Test #4:

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

input:

5

output:

1

result:

ok single line: '1'

Test #5:

score: 0
Accepted
time: 23ms
memory: 7040kb

input:

216

output:

4

result:

ok single line: '4'

Test #6:

score: -100
Runtime Error

input:

659048550435237232393875796171343597297252783860791224966151609834498375660891507785647188078990198766575546966667938541517709208360385263203130845215396367798902376853652489767206051858708602045962531467486884777174160264291462611744982439094276291073422016146183934443085743192727084631329374278797...

output:


result: