結果

問題 No.1987 Sandglass Inconvenience
ユーザー erbowl
提出日時 2022-08-07 17:54:12
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 22 ms / 2,000 ms
コード長 328 bytes
コンパイル時間 2,065 ms
コンパイル使用メモリ 193,544 KB
最終ジャッジ日時 2025-01-30 19:14:52
ジャッジサーバーID
(参考情報)
judge5 / judge4
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

typedef long long ll;
typedef long double ld;
#include <bits/stdc++.h>
using namespace std;
#define int long long

signed main(){
    ll a,b,c;
    std::cin >> a>>b>>c;
    ll x;
    std::cin >> x;
    if(x%gcd(gcd(a,b),c)==0){
        std::cout << "Yes" << std::endl;
    }else{
        std::cout << "No " << std::endl;
    }
}
0