結果

問題 No.892 タピオカ
ユーザー yuji9511yuji9511
提出日時 2019-09-27 21:26:10
言語 C++14
(gcc 13.2.0 + boost 1.83.0)
結果
AC  
実行時間 2 ms / 1,000 ms
コード長 790 bytes
コンパイル時間 1,550 ms
コンパイル使用メモリ 166,556 KB
実行使用メモリ 4,348 KB
最終ジャッジ日時 2023-10-25 01:40:22
合計ジャッジ時間 2,110 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

/*** author: yuji9511 ***/
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
typedef pair<ll, ll> lpair;
const ll MOD = 1e9 + 7;
const ll INF = 1e18;
#define rep(i,m,n) for(ll i = (m); i < (n); i++)
#define rrep(i,m,n) for(ll i = (m); i >= (n); i--)
#define printa(x,n) for(ll i = 0; i < n; i++){ cout << (x[i]) << " \n"[i==n-1];};
void print() {}
template <class Head, class... Tail>
void print(Head&& head, Tail&&... tail){ cout << head << " \n"[sizeof...(tail) == 0]; print(forward<Tail>(tail)...);}

int main(){
	cin.tie(0);
	ios::sync_with_stdio(false);
	ll a1,b1,a2,b2,a3,b3;
	cin >> a1 >> b1 >> a2 >> b2 >> a3 >> b3;
	ll cnt = 0;
	if(a1 % 2 == 1) cnt++;
	if(a2 % 2 == 1) cnt++;
	if(a3 % 2 == 1) cnt++;
	if(cnt % 2 == 0){
		print(":-)");
	}else{
		print(":-(");
	}
}
0