結果

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

ソースコード

diff #

#include <iostream>
using namespace std;
long long gcd(long long a,long long b){
    if(a%b == 0)return b;
    else return gcd(b,a%b);
}
int main(){
    long long a,b,c,x;cin>>a>>b>>c>>x;
    if(!(x%gcd(a,gcd(b,c))))cout << "Yes" << endl;
    else cout << "No" << endl;
}
0