結果
| 問題 |
No.1459 スマホを落としたいだけなのに
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2021-03-31 22:58:50 |
| 言語 | PyPy3 (7.3.15) |
| 結果 |
AC
|
| 実行時間 | 49 ms / 2,000 ms |
| コード長 | 337 bytes |
| コンパイル時間 | 384 ms |
| コンパイル使用メモリ | 82,304 KB |
| 実行使用メモリ | 59,392 KB |
| 最終ジャッジ日時 | 2024-12-15 21:39:39 |
| 合計ジャッジ時間 | 2,964 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 6 |
| other | AC * 30 |
ソースコード
import sys
input = sys.stdin.readline
from collections import *
def f(x):
if x==0:
return 0
res = 10**18
for i in range(1, x+1):
res = min(res, max(i, 1+f(x-i)))
return res
N = int(input())
now = 0
for i in range(10**5):
if N<=now+i:
print(i)
exit()
now += i