結果

問題 No.1664 Unstable f(n)
ユーザー taiga0629kyoprotaiga0629kyopro
提出日時 2021-09-03 21:28:19
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 136 bytes
コンパイル時間 267 ms
コンパイル使用メモリ 82,292 KB
実行使用メモリ 54,216 KB
最終ジャッジ日時 2024-05-09 01:47:03
合計ジャッジ時間 3,058 ms
ジャッジサーバーID
(参考情報)
judge3 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
52,428 KB
testcase_01 AC 35 ms
52,444 KB
testcase_02 AC 36 ms
52,428 KB
testcase_03 WA -
testcase_04 WA -
testcase_05 WA -
testcase_06 AC 38 ms
53,156 KB
testcase_07 AC 35 ms
52,684 KB
testcase_08 AC 35 ms
53,368 KB
testcase_09 AC 34 ms
53,224 KB
testcase_10 WA -
testcase_11 AC 36 ms
52,560 KB
testcase_12 AC 36 ms
52,608 KB
testcase_13 AC 36 ms
53,028 KB
testcase_14 AC 36 ms
52,136 KB
testcase_15 AC 39 ms
53,044 KB
testcase_16 AC 36 ms
51,812 KB
testcase_17 AC 36 ms
53,500 KB
testcase_18 AC 35 ms
53,196 KB
testcase_19 AC 36 ms
52,264 KB
testcase_20 AC 37 ms
52,876 KB
testcase_21 WA -
testcase_22 AC 35 ms
51,956 KB
testcase_23 AC 36 ms
51,696 KB
testcase_24 AC 35 ms
53,712 KB
testcase_25 AC 36 ms
52,100 KB
testcase_26 AC 35 ms
52,068 KB
testcase_27 AC 36 ms
52,624 KB
testcase_28 AC 35 ms
53,120 KB
testcase_29 AC 36 ms
52,996 KB
testcase_30 AC 36 ms
52,264 KB
testcase_31 WA -
testcase_32 WA -
testcase_33 WA -
testcase_34 WA -
testcase_35 WA -
testcase_36 WA -
testcase_37 WA -
testcase_38 WA -
testcase_39 WA -
testcase_40 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
ok=0
ng=10**18
while ng-ok>1:
    mid=(ok+ng)//2
    if mid**2<=n:ok=mid
    else:ng=mid

i=ok
j=2
k=n-i**j
print(i+j+k)
0