結果

問題 No.1157 Many Quotients easy
ユーザー 蜜蜂
提出日時 2020-08-11 15:18:58
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 3 ms / 2,000 ms
コード長 207 bytes
コンパイル時間 1,662 ms
コンパイル使用メモリ 165,856 KB
実行使用メモリ 6,820 KB
最終ジャッジ日時 2024-10-09 18:19:05
合計ジャッジ時間 2,524 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
    int n;
    cin>>n;
    int ans=1;
    for(int i=2;i<=n;i++){
        if(n/i!=n/(i-1)){
            ans++;
        }
    }
    cout<<ans<<endl;
}
0