結果
問題 | No.892 タピオカ |
ユーザー |
|
提出日時 | 2021-09-03 17:55:04 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 1,000 ms |
コード長 | 298 bytes |
コンパイル時間 | 1,635 ms |
コンパイル使用メモリ | 187,844 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-12-15 04:41:38 |
合計ジャッジ時間 | 2,146 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 6 |
ソースコード
#define _GLIBCXX_DEBUG #include <bits/stdc++.h> using namespace std; int main() { int A1, A2, A3, B; cin >> A1 >> B >> A2 >> B >> A3 >> B; int ans = 0; if(A1%2 != 0) ans++; if(A2%2 != 0) ans++; if(A3%2 != 0) ans++; if(ans%2 == 0) cout << ":-)" << endl; else cout << ":-(" << endl; }