結果

問題 No.508 超ゆとり教育
ユーザー Kaito KoikeKaito Koike
提出日時 2018-03-31 13:56:44
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 21 ms / 2,000 ms
コード長 145 bytes
コンパイル時間 249 ms
コンパイル使用メモリ 10,528 KB
実行使用メモリ 9,216 KB
最終ジャッジ日時 2023-09-08 08:03:12
合計ジャッジ時間 913 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 21 ms
9,216 KB
testcase_01 AC 21 ms
9,032 KB
testcase_02 AC 20 ms
9,156 KB
testcase_03 AC 21 ms
9,132 KB
testcase_04 AC 20 ms
9,080 KB
testcase_05 AC 20 ms
9,004 KB
testcase_06 AC 20 ms
9,144 KB
testcase_07 AC 21 ms
9,144 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

from decimal import *
import math

n = int(input())

r = math.sqrt(Decimal(n) / Decimal(3) )

if r > 1:
    r = int(r)
else:
    r = 1

print(r)
0