QOJ.ac
QOJ
ID | Problem | Submitter | Result | Time | Memory | Language | File size | Submit time | Judge time |
---|---|---|---|---|---|---|---|---|---|
#709659 | #5006. Heximal | becaido | RE | 74ms | 11260kb | Python3 | 226b | 2024-11-04 16:05:16 | 2024-11-04 16:05:17 |
Judging History
answer
n = int(input())
if n == 0 : print ('1')
else :
l = 1
r = 1100000
while l < r :
mid = (l + r) // 2
val = 6 ** mid - 1
if val >= n : r = mid
else : l = mid + 1
print (l)
Details
Tip: Click on the bar to expand more detailed information
Test #1:
score: 100
Accepted
time: 7ms
memory: 10624kb
input:
0
output:
1
result:
ok single line: '1'
Test #2:
score: 0
Accepted
time: 74ms
memory: 11208kb
input:
1865
output:
5
result:
ok single line: '5'
Test #3:
score: 0
Accepted
time: 70ms
memory: 11208kb
input:
6
output:
2
result:
ok single line: '2'
Test #4:
score: 0
Accepted
time: 62ms
memory: 11260kb
input:
5
output:
1
result:
ok single line: '1'
Test #5:
score: 0
Accepted
time: 74ms
memory: 11212kb
input:
216
output:
4
result:
ok single line: '4'
Test #6:
score: -100
Dangerous Syscalls
input:
659048550435237232393875796171343597297252783860791224966151609834498375660891507785647188078990198766575546966667938541517709208360385263203130845215396367798902376853652489767206051858708602045962531467486884777174160264291462611744982439094276291073422016146183934443085743192727084631329374278797...