結果

問題 No.2417 Div Count
ユーザー marble72
提出日時 2023-08-12 14:06:43
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
TLE  
実行時間 -
コード長 240 bytes
コンパイル時間 1,682 ms
コンパイル使用メモリ 165,628 KB
実行使用メモリ 10,624 KB
最終ジャッジ日時 2024-11-19 17:23:36
合計ジャッジ時間 46,236 ms
ジャッジサーバーID
(参考情報)
judge1 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 2
other AC * 28 TLE * 13
権限があれば一括ダウンロードができます

ソースコード

diff #

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

int main(){
    ll N,K;
    cin >> N >> K;
    ll ans = 0;
    for(int i=K+1;i<=N;i++){
        if(N%i == K){
            ans++;
        }
    }
    cout << ans << endl;
}
0