結果

問題 No.1162 Many Quotients hard
ユーザー tikitaka1201
提出日時 2020-10-01 21:22:15
言語 PyPy3
(7.3.15)
結果
RE  
実行時間 -
コード長 153 bytes
コンパイル時間 145 ms
コンパイル使用メモリ 82,080 KB
実行使用メモリ 67,060 KB
最終ジャッジ日時 2024-07-07 04:13:18
合計ジャッジ時間 3,000 ms
ジャッジサーバーID
(参考情報)
judge5 / judge1
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 26 RE * 16
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
tmp=0
for i in range(max(1, int(n**0.5)-2),max(1, int(n**0.5)+2)):
    if n/i-n/(i+1)<1:
        tmp=i
        break
print((tmp-1)+n//tmp)
0