結果
問題 |
No.882 約数倍数
|
ユーザー |
|
提出日時 | 2020-06-25 23:45:03 |
言語 | C++17(clang) (17.0.6 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 500 ms |
コード長 | 410 bytes |
コンパイル時間 | 986 ms |
コンパイル使用メモリ | 136,308 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-30 18:48:09 |
合計ジャッジ時間 | 1,956 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
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; }