結果
問題 | No.892 タピオカ |
ユーザー |
![]() |
提出日時 | 2019-09-27 21:48:07 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 631 bytes |
コンパイル時間 | 1,667 ms |
コンパイル使用メモリ | 169,056 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 22:49:30 |
合計ジャッジ時間 | 2,150 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
#include <bits/stdc++.h>using namespace std;#define int long long#define FOR(i, s, n) for (int i = (s); i < (int)(n); i++)#define RFOR(i, s, n) for (int i = (n) - 1; i >= (int)(s); i--)#define REP(i, n) FOR(i, 0, n)#define RREP(i, n) RFOR(i, 0, n)#define ALL(a) a.begin(), a.end()constexpr long long INF = 1e18;template<class T>inline bool CHMAX(T&a,T b){if(a<b){a=b;return true;}return false;}template<class T>inline bool CHMIN(T&a,T b){if(a>b){a=b;return true;}return false;}signed main(){vector<int>a(3),b(3);REP(i,3)cin >> a[i] >> b[i];if(accumulate(ALL(a),0)%2)cout<<":-("<<endl;else cout<<":-)"<<endl;}