結果
| 問題 | No.1664 Unstable f(n) |
| コンテスト | |
| ユーザー |
H20
|
| 提出日時 | 2021-09-03 21:56:18 |
| 言語 | PyPy3 (7.3.17) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 125 bytes |
| 記録 | |
| コンパイル時間 | 149 ms |
| コンパイル使用メモリ | 85,248 KB |
| 実行使用メモリ | 52,608 KB |
| 最終ジャッジ日時 | 2026-05-25 23:53:43 |
| 合計ジャッジ時間 | 2,349 ms |
|
ジャッジサーバーID (参考情報) |
judge3_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 31 WA * 7 |
ソースコード
import math
N = int(input())
ans = N
for j in range(2,80):
i = int(pow(N,1/j))
ans = min(ans,i+j+(N-i**j))
print(ans)
H20