結果
| 問題 |
No.2051 Divide
|
| コンテスト | |
| ユーザー |
👑 |
| 提出日時 | 2022-08-21 19:07:31 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 270 bytes |
| コンパイル時間 | 751 ms |
| コンパイル使用メモリ | 65,820 KB |
| 最終ジャッジ日時 | 2025-01-31 02:33:10 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 23 |
ソースコード
#include <iostream>
using namespace std;
int main(){
int a,b;cin>>a>>b;
int ans = 0;
for(int i = 1; a >= i*i; i++){
if(a%i == 0){
if(i%b == 0)ans++;
if(a != i*i && (a/i)%b == 0)ans++;
}
}
cout << ans << endl;
}