結果

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

ソースコード

diff #

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