結果
問題 |
No.3236 累乗数大好きbot
|
ユーザー |
![]() |
提出日時 | 2025-08-15 22:38:26 |
言語 | PyPy3 (7.3.15) |
結果 |
WA
|
実行時間 | - |
コード長 | 347 bytes |
コンパイル時間 | 289 ms |
コンパイル使用メモリ | 82,232 KB |
実行使用メモリ | 84,716 KB |
最終ジャッジ日時 | 2025-08-15 22:38:36 |
合計ジャッジ時間 | 8,274 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge6 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 1 |
other | WA * 4 TLE * 1 -- * 26 |
ソースコード
Q = int(input()) for _ in range(Q): N = int(input()) for exp in range(40,-1,-1): ng,ok = 0,10**6+1 while(ok - ng > 1): mid = (ok+ng)//2 if(mid**exp >= N): ok = mid else: ng = mid if(ok**exp == N): print(exp) break