結果
| 問題 |
No.1987 Sandglass Inconvenience
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2022-06-24 21:33:47 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 13 ms / 2,000 ms |
| コード長 | 545 bytes |
| コンパイル時間 | 4,590 ms |
| コンパイル使用メモリ | 325,016 KB |
| 最終ジャッジ日時 | 2025-01-30 00:10:13 |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <deque>
#include <queue>
#include <set>
#include <map>
#include <limits>
#include <cmath>
#include <iomanip>
#include <functional>
#include <random>
#include <boost/multiprecision/cpp_int.hpp>
namespace mp = boost::multiprecision;
using namespace std;
using ll = long long;
int main()
{
ll a,b,c,X;
cin >> a >> b >> c >> X;
ll g = gcd(gcd(a,b),c);
if (X % g == 0){
cout << "Yes" << endl;
}else{
cout << "No" << endl;
}
return 0;
}