結果

問題 No.3236 累乗数大好きbot
ユーザー titia
提出日時 2025-08-28 02:13:04
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 722 ms / 4,000 ms
コード長 214 bytes
コンパイル時間 342 ms
コンパイル使用メモリ 82,416 KB
実行使用メモリ 77,212 KB
最終ジャッジ日時 2025-08-28 02:13:25
合計ジャッジ時間 19,745 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 1
other AC * 31
権限があれば一括ダウンロードができます

ソースコード

diff #

import sys
input = sys.stdin.readline

Q=int(input())

for tests in range(Q):
    N=int(input())

    for i in range(60,-1,-1):
        u=round(N**(1/i))

        if u**i==N:
            print(i)
            break
0