結果
問題 | No.882 約数倍数 |
ユーザー |
![]() |
提出日時 | 2019-09-13 21:35:11 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 500 ms |
コード長 | 648 bytes |
コンパイル時間 | 687 ms |
コンパイル使用メモリ | 78,256 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-07-04 04:01:21 |
合計ジャッジ時間 | 1,247 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 4 |
other | AC * 10 |
ソースコード
#include<iostream>#include<vector>#include<map>#include<string>#include<cstring>#include<bitset>#include<stack>#include<queue>#include<cmath>#include<algorithm>#include<cstdio>#include<numeric>#include<set>#include<math.h>using namespace std;const int dx[4]={1,0,-1,0};const int dy[4]={0,1,0,-1};#define rep(i,x) for(int i=0;i<x;i++)#define re(i,x,y) for(int i=x;i<y;i++)long long INF=1e9;const long long mod=2019;#define ll long longint main(){cin.tie(0); ios::sync_with_stdio(false);int a,b; cin>>a>>b;if(a%b==0){cout<<"YES"<<endl;}else{cout<<"NO"<<endl;}return 0;}