結果
問題 |
No.88 次はどっちだ
|
ユーザー |
![]() |
提出日時 | 2019-01-11 20:11:40 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 387 bytes |
コンパイル時間 | 474 ms |
コンパイル使用メモリ | 64,896 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-29 19:40:08 |
合計ジャッジ時間 | 1,195 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <string> using namespace std; #define rep(i, n) for (int i = 0; i < n; i++) int main() { string S; cin >> S; int cnt = 0; rep(i, 8) { string B; cin >> B; rep(j, 8) { cnt = B[j] == '.' ? cnt : cnt + 1; } } if (cnt % 2 == 0) { cout << S; } else { if (S == "oda") { cout << "yukiko"; } else { cout << "oda"; } } }