結果
問題 |
No.1987 Sandglass Inconvenience
|
ユーザー |
![]() |
提出日時 | 2022-06-25 00:36:09 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 349 bytes |
コンパイル時間 | 1,975 ms |
コンパイル使用メモリ | 192,372 KB |
最終ジャッジ日時 | 2025-01-30 00:40:18 |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#define rep(i,n) for(int i=0;i<(int)(n);i++) #define ALL(v) v.begin(),v.end() typedef long long ll; #include <bits/stdc++.h> using namespace std; int main(){ ios::sync_with_stdio(false); std::cin.tie(nullptr); ll a,b,c,x; cin>>a>>b>>c>>x; ll d=gcd(gcd(a,b),c); if(x%d==0) cout<<"Yes"<<endl; else cout<<"No"<<endl; return 0; }