結果

問題 No.882 約数倍数
ユーザー negibouzu
提出日時 2020-04-28 20:00:36
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 226 bytes
コンパイル時間 1,538 ms
コンパイル使用メモリ 165,804 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-11-25 06:09:43
合計ジャッジ時間 2,165 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3 WA * 1
other AC * 5 WA * 5
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <bits/stdc++.h>
using namespace std;

int main(){
  int A,B;
  cin>>A>>B;
  for(int i=1;i<=100;i++){
    if((i%A==0)&&(B%i==0)){
      cout<<"YES"<<endl;
      return 0;
    }
  }
  cout<<"NO"<<endl;
  return 0;
}

  
0