結果
| 問題 |
No.1987 Sandglass Inconvenience
|
| コンテスト | |
| ユーザー |
merom686
|
| 提出日時 | 2022-07-02 09:34:24 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 2,000 ms |
| コード長 | 243 bytes |
| コンパイル時間 | 1,796 ms |
| コンパイル使用メモリ | 192,380 KB |
| 最終ジャッジ日時 | 2025-01-30 03:47:20 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 22 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main() {
ll a, b, c;
cin >> a >> b >> c;
ll x;
cin >> x;
ll g = gcd(gcd(a, b), c);
cout << (x % g == 0 ? "Yes" : "No") << endl;
return 0;
}
merom686