結果
| 問題 | No.3659 CONSTRUCTION 1,2,3 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2026-08-30 15:14:30 |
| 言語 | C++23 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 673 bytes |
| 記録 | |
| コンパイル時間 | 2,033 ms |
| コンパイル使用メモリ | 333,600 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-30 15:14:35 |
| 合計ジャッジ時間 | 3,202 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 12 WA * 3 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define int long long
#define rep(i, n) for(int i = 0; i < (int)(n); ++i)
int solve(void) {
int A, B, C;
cin >> A >> B >> C;
vector<int> v = {A, B, C}, P = {1, 2, 3};
do {
bool flag = true;
rep(i, 3) if(v[i] % P[i]) flag = false;
if(flag) {
cout << "Yes\n";
return 0;
}
} while(next_permutation(P.begin(), P.end()));
cout << "No\n";
return 0;
}
signed main(void) {
ios::sync_with_stdio(false);
cin.tie(nullptr);
cout.tie(nullptr);
int Testcases = 1;
//cin >> Testcases;
while(Testcases--) solve();
return 0;
}