結果
問題 | No.1987 Sandglass Inconvenience |
ユーザー |
|
提出日時 | 2024-04-15 09:08:45 |
言語 | C++17(gcc12) (gcc 12.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 2,000 ms |
コード長 | 313 bytes |
コンパイル時間 | 3,761 ms |
コンパイル使用メモリ | 261,636 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-10-05 02:04:23 |
合計ジャッジ時間 | 4,746 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <bits/stdc++.h>#include <atcoder/all>using namespace std;using namespace atcoder;using ll = long long;using ld = long double;using mint = modint998244353;int main() {ll a, b, c, X; cin >> a >> b >> c >> X;ll g = gcd(gcd(a, b), c);cout << (X % g == 0 ? "Yes": "No") << endl;return 0;}