結果
| 問題 | No.882 約数倍数 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-06-25 23:45:03 |
| 言語 | C++17(clang) (clang++ 23.1.3 + boost 1.92.0 + ACL) |
| 結果 |
AC
不安定
|
| 実行時間 | 1 ms / 500 ms |
| + 244µs | |
| コード長 | 410 bytes |
| 記録 | |
| コンパイル時間 | 586 ms |
| コンパイル使用メモリ | 140,504 KB |
| 実行使用メモリ | 6,400 KB |
| 最終ジャッジ日時 | 2026-10-02 19:42:42 |
| 合計ジャッジ時間 | 1,865 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / 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;
}