Submission #2497467


Source Code Expand

Copy
import sys
import math
if __name__ == "__main__":
    X = int(input())
    buf = int(math.sqrt(X))
    buf = pow(buf, 2)
    for i in range(2, 11):
        tmp = pow(i, 3)
        if tmp < X and tmp > buf:
            buf = tmp
    for i in range(2, 6):
        tmp = pow(i, 4)
        if tmp < X and tmp > buf:
            buf = tmp
    for i in range(2, 4):
        tmp = pow(i, 5)
        if tmp < X and tmp > buf:
            buf = tmp
    for i in range(2, 4):
        tmp = pow(i, 6)
        if tmp < X and tmp > buf:
            buf = tmp
    for i in range(7, 11):
        tmp = pow(2, i)
        if tmp < X and tmp > buf:
            buf = tmp
    print(buf)

Submission Info

Submission Time
Task B - Exponential
User tomowill
Language Python (3.4.3)
Score 0
Code Size 693 Byte
Status WA
Exec Time 17 ms
Memory 3064 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 200
Status
AC × 3
AC × 7
WA × 2
Set Name Test Cases
Sample 0_000.txt, 0_001.txt, 0_002.txt
All 0_000.txt, 0_001.txt, 0_002.txt, 1_003.txt, 1_004.txt, 1_005.txt, 1_006.txt, 1_007.txt, 1_008.txt
Case Name Status Exec Time Memory
0_000.txt AC 17 ms 3064 KB
0_001.txt AC 17 ms 3064 KB
0_002.txt AC 17 ms 3064 KB
1_003.txt AC 17 ms 3064 KB
1_004.txt AC 17 ms 3064 KB
1_005.txt AC 17 ms 3064 KB
1_006.txt WA 17 ms 3064 KB
1_007.txt WA 17 ms 3064 KB
1_008.txt AC 17 ms 3064 KB