結果
| 問題 | No.882 約数倍数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-25 23:45:03 |
| 言語 | C++17(clang) (clang++ 22.1.2 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 500 ms |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 782 ms |
| コンパイル使用メモリ | 144,580 KB |
| 実行使用メモリ | 7,972 KB |
| 最終ジャッジ日時 | 2026-05-24 09:33:15 |
| 合計ジャッジ時間 | 1,513 ms |
|
ジャッジサーバーID (参考情報) |
judge3_1 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <utility>
#include <algorithm>
#include <climits>
#include <map>
#include <queue>
#include <cmath>
using namespace std;
using int64 = long long;
int main() {
int a,b;
cin >> a >> b;
bool ans = false;
for (int i=1; i<=100; i++) {
if (a%i==0 && i%b==0) ans = true;
}
cout << (ans? "YES" : "NO") << endl;
}