結果
問題 | No.882 約数倍数 |
ユーザー |
![]() |
提出日時 | 2019-09-13 21:48:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 500 ms |
コード長 | 807 bytes |
コンパイル時間 | 823 ms |
コンパイル使用メモリ | 95,636 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-04 04:08:14 |
合計ジャッジ時間 | 1,288 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 10 |
ソースコード
#include <assert.h> #include <limits.h> #include <algorithm> #include <bitset> #include <cctype> #include <cmath> #include <complex> #include <deque> #include <functional> #include <iomanip> #include <iostream> #include <map> #include <numeric> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using ll = long long; using P = std::pair<ll, ll>; #define rep(i, a, b) for (ll(i) = (a); i < (b); i++) #define all(i) i.begin(), i.end() #define debug(i) std::cerr << "debug "<< i << std::endl // const ll MOD = 998244353; const ll MOD = 1e9 + 7; int main() { std::cin.tie(0); std::ios::sync_with_stdio(false); //問題文中の添え字が0-indexか1-indexか確認! ll a,b; std::cin>>a>>b; if(a%b==0)std::cout<<"YES"; else std::cout<<"NO"; return 0; }