結果

問題 No.508 超ゆとり教育
ユーザー DrDrpilotDrDrpilot
提出日時 2022-06-24 19:44:58
言語 PyPy3
(7.3.15)
結果
AC  
実行時間 39 ms / 2,000 ms
コード長 200 bytes
コンパイル時間 352 ms
コンパイル使用メモリ 82,404 KB
実行使用メモリ 53,880 KB
最終ジャッジ日時 2024-04-26 03:35:11
合計ジャッジ時間 1,660 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 37 ms
53,688 KB
testcase_01 AC 38 ms
52,932 KB
testcase_02 AC 37 ms
51,944 KB
testcase_03 AC 36 ms
52,868 KB
testcase_04 AC 39 ms
53,880 KB
testcase_05 AC 37 ms
53,288 KB
testcase_06 AC 37 ms
53,396 KB
testcase_07 AC 37 ms
52,620 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

def main():
    n=int(input())
    ok=10**6;ng=0
    while ok-ng>0.1:
        mid=(ok+ng)/2
        if mid**2*3>=n:
            ok=mid
        else:
            ng=mid
    print(max(int(ok),1))
main()
0