結果
| 問題 |
No.882 約数倍数
|
| コンテスト | |
| ユーザー |
noisy_noimin
|
| 提出日時 | 2019-09-13 21:21:14 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 500 ms |
| コード長 | 850 bytes |
| コンパイル時間 | 680 ms |
| コンパイル使用メモリ | 93,456 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-07-04 03:54:10 |
| 合計ジャッジ時間 | 1,203 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 4 |
| other | AC * 10 |
ソースコード
#include <cstdio>
#include <cstdlib>
#include <cmath>
#include <climits>
#include <cassert>
#include <cstdint>
#include <iostream>
#include <iomanip>
#include <string>
#include <stack>
#include <queue>
#include <vector>
#include <map>
#include <set>
#include <algorithm>
#include <numeric>
#include <bitset>
using namespace std;
using ll = long long;
using Pll = pair<ll, ll>;
using Pii = pair<int, int>;
constexpr ll MOD = 1000000007;
constexpr long double EPS = 1e-10;
constexpr int dyx[4][2] = {
{ 0, 1}, {-1, 0}, {0,-1}, {1, 0}
};
int main() {
std::ios::sync_with_stdio(false); cin.tie(nullptr);
int a,b;
cin >> a >> b;
for(int i=1;i<=a;++i) {
if(a % i == 0) {
if(i % b == 0) {
cout << "YES" << endl;
return 0;
}
}
}
cout << "NO" << endl;
}
noisy_noimin