結果
問題 | No.1987 Sandglass Inconvenience |
ユーザー |
![]() |
提出日時 | 2022-07-29 10:11:13 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 17 ms / 2,000 ms |
コード長 | 380 bytes |
コンパイル時間 | 4,180 ms |
コンパイル使用メモリ | 249,932 KB |
最終ジャッジ日時 | 2025-01-30 14:46:21 |
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/all>using namespace atcoder;using mint = modint998244353;using namespace std;#define rep(i,n) for (int i = 0; i < (n); ++i)#define Inf 1000000001int main() {long long a,b,c,x;cin>>a>>b>>c>>x;long long g = gcd(a,b);g = gcd(g,c);if(x%g==0){cout<<"Yes"<<endl;}else{cout<<"No"<<endl;}return 0;}