結果

問題 No.892 タピオカ
ユーザー ponponpainfulponponpainful
提出日時 2019-09-27 21:24:38
言語 C++14
(gcc 12.3.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 752 bytes
コンパイル時間 4,029 ms
コンパイル使用メモリ 164,764 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-25 01:34:29
合計ジャッジ時間 3,685 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 2 ms
4,348 KB
testcase_01 AC 2 ms
4,348 KB
testcase_02 AC 2 ms
4,348 KB
testcase_03 AC 1 ms
4,348 KB
testcase_04 AC 2 ms
4,348 KB
testcase_05 AC 2 ms
4,348 KB
testcase_06 AC 2 ms
4,348 KB
testcase_07 AC 2 ms
4,348 KB
testcase_08 AC 1 ms
4,348 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

#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;
}
0