結果
問題 | No.1987 Sandglass Inconvenience |
ユーザー |
👑 ![]() |
提出日時 | 2024-04-26 18:17:32 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 6 ms / 2,000 ms |
コード長 | 371 bytes |
コンパイル時間 | 645 ms |
コンパイル使用メモリ | 70,068 KB |
最終ジャッジ日時 | 2025-02-21 09:09:28 |
ジャッジサーバーID (参考情報) |
judge1 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 22 |
ソースコード
#include <iostream> #include <string> #include <vector> #include <numeric> using namespace std; using i64 = long long; int main(){ ios::sync_with_stdio(false); cin.tie(nullptr); i64 a; cin >> a; i64 b; cin >> b; i64 c; cin >> c; i64 g = gcd(gcd(a,b),c); i64 N; cin >> N; if(N%g == 0) cout << "Yes\n"; else cout << "No\n"; return 0; }