Submission #47321923


Source Code Expand

# LUOGU_RID: 133626771
n = int(input())

for i in range(1, 18):
    if i ** i <= 10 ** 18 and i ** i == n:
        print(i)
        exit(0)

print(-1)

Submission Info

Submission Time
Task B - A^A
User x_x_
Language Python (CPython 3.11.4)
Score 200
Code Size 159 Byte
Status AC
Exec Time 10 ms
Memory 8880 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 21
Set Name Test Cases
Sample 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt
All 00_sample_00.txt, 00_sample_01.txt, 00_sample_02.txt, 01_random_00.txt, 01_random_01.txt, 01_random_02.txt, 01_random_03.txt, 01_random_04.txt, 01_random_05.txt, 01_random_06.txt, 01_random_07.txt, 01_random_08.txt, 01_random_09.txt, 02_hack_1_00.txt, 02_hack_1_01.txt, 03_hack_2_00.txt, 03_hack_2_01.txt, 03_hack_2_02.txt, 03_hack_2_03.txt, 04_corner_00.txt, 04_corner_01.txt
Case Name Status Exec Time Memory
00_sample_00.txt AC 10 ms 8824 KiB
00_sample_01.txt AC 10 ms 8428 KiB
00_sample_02.txt AC 9 ms 8828 KiB
01_random_00.txt AC 9 ms 8456 KiB
01_random_01.txt AC 9 ms 8508 KiB
01_random_02.txt AC 9 ms 8444 KiB
01_random_03.txt AC 9 ms 8768 KiB
01_random_04.txt AC 10 ms 8768 KiB
01_random_05.txt AC 9 ms 8844 KiB
01_random_06.txt AC 10 ms 8784 KiB
01_random_07.txt AC 10 ms 8780 KiB
01_random_08.txt AC 10 ms 8880 KiB
01_random_09.txt AC 9 ms 8820 KiB
02_hack_1_00.txt AC 9 ms 8480 KiB
02_hack_1_01.txt AC 9 ms 8396 KiB
03_hack_2_00.txt AC 9 ms 8296 KiB
03_hack_2_01.txt AC 9 ms 8528 KiB
03_hack_2_02.txt AC 9 ms 8448 KiB
03_hack_2_03.txt AC 10 ms 8552 KiB
04_corner_00.txt AC 10 ms 8512 KiB
04_corner_01.txt AC 9 ms 8448 KiB