結果

問題 No.508 超ゆとり教育
ユーザー DrDrpilotDrDrpilot
提出日時 2022-06-24 19:43:51
言語 PyPy3
(7.3.15)
結果
WA  
実行時間 -
コード長 193 bytes
コンパイル時間 439 ms
コンパイル使用メモリ 82,360 KB
実行使用メモリ 53,816 KB
最終ジャッジ日時 2024-04-26 03:33:40
合計ジャッジ時間 1,363 ms
ジャッジサーバーID
(参考情報)
judge2 / judge1
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 36 ms
52,616 KB
testcase_01 WA -
testcase_02 AC 35 ms
53,160 KB
testcase_03 AC 37 ms
52,680 KB
testcase_04 AC 36 ms
53,040 KB
testcase_05 AC 35 ms
52,460 KB
testcase_06 AC 37 ms
52,652 KB
testcase_07 AC 36 ms
52,660 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(int(ok))
main()
0