結果

問題 No.1666 累乗数
ユーザー lloyzlloyz
提出日時 2022-01-23 14:32:44
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 235 bytes
コンパイル時間 1,429 ms
コンパイル使用メモリ 86,720 KB
実行使用メモリ 82,108 KB
最終ジャッジ日時 2023-08-19 19:24:06
合計ジャッジ時間 5,157 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 74 ms
80,392 KB
testcase_01 AC 86 ms
80,572 KB
testcase_02 AC 80 ms
80,672 KB
testcase_03 AC 83 ms
80,352 KB
testcase_04 AC 81 ms
80,644 KB
testcase_05 RE -
testcase_06 RE -
testcase_07 RE -
testcase_08 RE -
testcase_09 RE -
testcase_10 RE -
testcase_11 RE -
testcase_12 RE -
testcase_13 RE -
testcase_14 RE -
testcase_15 RE -
testcase_16 RE -
testcase_17 RE -
testcase_18 RE -
testcase_19 RE -
権限があれば一括ダウンロードができます

ソースコード

diff #

T = set([1])
i = 2
while i * i <= 10**9:
    for j in range(2, 60):
        if pow(i, j) > 10**9:
            break
        T.add(pow(i, j))
    i += 1

T = sorted(T)

t = int(input())
for _ in range(t):
    print(T[int(input()) - 1])
0