結果

問題 No.508 超ゆとり教育
ユーザー sue_charosue_charo
提出日時 2017-04-29 11:39:18
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 30 ms / 2,000 ms
コード長 548 bytes
コンパイル時間 85 ms
コンパイル使用メモリ 10,964 KB
実行使用メモリ 9,968 KB
最終ジャッジ日時 2023-10-11 20:19:25
合計ジャッジ時間 1,069 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 30 ms
9,896 KB
testcase_01 AC 30 ms
9,968 KB
testcase_02 AC 29 ms
9,868 KB
testcase_03 AC 30 ms
9,892 KB
testcase_04 AC 30 ms
9,848 KB
testcase_05 AC 30 ms
9,900 KB
testcase_06 AC 30 ms
9,880 KB
testcase_07 AC 30 ms
9,844 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

# coding: utf-8
import array, bisect, collections, heapq, itertools, math, random, re, string, sys, time
sys.setrecursionlimit(10 ** 7)
INF = 10 ** 20
MOD = 10 ** 9 + 7
 
 
def II(): return int(input())
def ILI(): return list(map(int, input().split()))
def IAI(LINE): return [ILI() for __ in range(LINE)]
def IDI(): return {key: value for key, value in ILI()}
 
 
def solve(n):
    ans = int(math.sqrt(n // 3))
    if ans < 1:
        ans = 1
    return ans

 
def main():
    n = II()
    print(solve(n))
 
 
if __name__ == "__main__":
    main()
0