結果

問題 No.892 タピオカ
ユーザー acchan
提出日時 2019-10-04 11:39:24
言語 C++14
(gcc 13.3.0 + boost 1.87.0)
結果
WA  
実行時間 -
コード長 317 bytes
コンパイル時間 573 ms
コンパイル使用メモリ 68,224 KB
実行使用メモリ 5,248 KB
最終ジャッジ日時 2024-10-03 06:48:29
合計ジャッジ時間 958 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 3 WA * 3
権限があれば一括ダウンロードができます

ソースコード

diff #

#include <iostream>
#include <vector>
using namespace std;

int main() {
  vector<int> A(3), B(3);
  int odd_cnt = 0;
  for(int i = 0; i < 3; i++) {
    cin >> A[i] >> B[i];
    if(A[i] % 2 == 1 && B[i] % 2 == 1) odd_cnt++;
  }
  if(odd_cnt % 2 == 1) cout << ":-(" << endl;
  else cout << ":-)" << endl;
  return 0;
}
0