結果

問題 No.1987 Sandglass Inconvenience
ユーザー Nzt3
提出日時 2022-06-25 15:48:20
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 2 ms / 2,000 ms
コード長 223 bytes
コンパイル時間 2,312 ms
コンパイル使用メモリ 192,380 KB
最終ジャッジ日時 2025-01-30 00:48:03
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

#include<bits/stdc++.h>
using namespace std;
const long long mod=1e9+7;
int main(){
  ios::sync_with_stdio(false);
  cin.tie(nullptr);
  long long A,B,C,X;
  cin>>A>>B>>C>>X;
  cout<<(X%gcd(gcd(A,B),C)==0?"Yes\n":"No\n");
}
0