結果

問題 No.1162 Many Quotients hard
ユーザー tikitaka1201
提出日時 2020-10-01 21:24:09
言語 PyPy3
(7.3.15)
結果
MLE  
実行時間 -
コード長 257 bytes
コンパイル時間 394 ms
コンパイル使用メモリ 82,176 KB
実行使用メモリ 513,496 KB
最終ジャッジ日時 2024-07-07 04:15:43
合計ジャッジ時間 4,749 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample -- * 2
other AC * 21 MLE * 1 -- * 20
権限があれば一括ダウンロードができます

ソースコード

diff #

n=int(input())
tmp=0
for i in range(max(1, int(n**0.5)-2),max(1, int(n**0.5)+3)):
    if n/i-n/(i+1)<1:
        tmp=i
        break
if tmp!=0:
    print((tmp-1)+n//tmp)
else:
    s=set([])
    for i in range(1, n+1):
        s.add(n//i)
    print(len(set))
0