結果
| 問題 |
No.892 タピオカ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-09-27 21:24:38 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 1,000 ms |
| コード長 | 752 bytes |
| コンパイル時間 | 1,565 ms |
| コンパイル使用メモリ | 166,664 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-09-24 20:40:22 |
| 合計ジャッジ時間 | 2,321 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 6 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,b,e) for(int i=(b);i<(e);++i)
#define RREP(i,b,e) for(int i=(b)-1;i>=e;--i)
#define rep(i,e) for(int i=0;i<(e);++i)
constexpr int MOD = 1000000007;
constexpr int INF = 1LL << 30;
constexpr long long LLINF = 1LL << 60;
constexpr double EPS = 1e-9;
inline void print(void) { cout<<'\n'; }
template<class T> inline void print(const T &x) { cout<<x<<'\n'; }
template<class T, class... U> inline void print(const T &x, const U&... y) { cout<<x<<" "; print(y...); }
int main() {
int a, b, c, d, e, f;
cin>>a>>b>>c>>d>>e>>f;
bool flag = true;
if (a%2==1) flag = !flag;
if (c%2==1) flag = !flag;
if (e%2==1) flag = !flag;
if (flag) print(":-)");
else print(":-(");
return 0;
}