結果
| 問題 |
No.2417 Div Count
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2023-08-12 14:23:12 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 304 bytes |
| コンパイル時間 | 2,134 ms |
| コンパイル使用メモリ | 192,824 KB |
| 最終ジャッジ日時 | 2025-02-16 04:44:31 |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 26 TLE * 2 -- * 13 |
ソースコード
#include<bits/stdc++.h>
using namespace std;
#define rep(i, n) for (int i = 0; i < (int)(n); i++)
int main(void){
// You can write your code below
int n, k;
int ans=0;
cin >> n >> k;
for(int a=1;a<n+1;a++){
if((n%a)==k){
ans++;
}
}
cout<<ans;
}