結果
問題 |
No.1119 Division 3
|
ユーザー |
![]() |
提出日時 | 2020-07-22 21:20:49 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 1,078 bytes |
コンパイル時間 | 933 ms |
コンパイル使用メモリ | 92,168 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-22 12:35:21 |
合計ジャッジ時間 | 1,414 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 2 |
other | AC * 16 |
ソースコード
// Template #include <iostream> #include <iomanip> #include <vector> #include <string> #include <queue> #include <deque> #include <stack> #include <tuple> #include <map> #include <set> #include <algorithm> #include <utility> #include <cmath> #include <complex> #define rep(i, x) for (int i = 0; i < (x); ++i) #define rng(i, x, y) for (int i = (x); i < (y); ++i) #define all(x) (x).begin(), (x).end() #define sz(x) (int)(x).size() #define pb push_back using namespace std; using ll = long long; constexpr int inf = 1001001001; constexpr ll INF = 3003003003003003003; template <typename T> inline bool chmin(T &x, const T &y) {if (x > y) {x = y; return 1;} return 0;} template <typename T> inline bool chmax(T &x, const T &y) {if (x < y) {x = y; return 1;} return 0;} void solve(); int main() { ios::sync_with_stdio(false); cin.tie(nullptr); cout << fixed << setprecision(10); solve(); return 0; } // Main Code void solve() { int x, y, z; cin >> x >> y >> z; if (x % 3 == 0 || y % 3 == 0 || z % 3 == 0) cout << "Yes\n"; else cout << "No\n"; }