結果
問題 |
No.1162 Many Quotients hard
|
ユーザー |
|
提出日時 | 2020-10-01 21:38:49 |
言語 | PyPy3 (7.3.15) |
結果 |
TLE
|
実行時間 | - |
コード長 | 136 bytes |
コンパイル時間 | 225 ms |
コンパイル使用メモリ | 82,060 KB |
実行使用メモリ | 65,828 KB |
最終ジャッジ日時 | 2024-07-07 04:33:23 |
合計ジャッジ時間 | 3,738 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | AC * 1 TLE * 1 -- * 40 |
ソースコード
n = int(input()) l,r=0,n+1 while l<r: mid=(l+r)//2 if mid*(mid+1)<n: l=mid else: r=mid-1 print(l+n//(l+1))