結果
問題 |
No.88 次はどっちだ
|
ユーザー |
![]() |
提出日時 | 2015-04-30 20:21:05 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 608 bytes |
コンパイル時間 | 1,599 ms |
コンパイル使用メモリ | 158,676 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-07-05 17:14:29 |
合計ジャッジ時間 | 2,016 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> #define rep(i, n) for (int (i) = 0; (i) < (int)(n); (i)++) const int dx[] = {1, 0, -1, 0}; const int dy[] = {0, 1, 0, -1}; using namespace std; typedef long long ll; int main() { cin.tie(0); ios::sync_with_stdio(false); string s; cin >> s; string t; int turn = 0; for (int i = 0; i < 8; i++) { cin >> t; for (int j = 0; j < 8; j++) if (t[j] != '.') turn++; } if (turn % 2 == 0) { cout << s << endl; } else { if (s == "oda") cout << "yukiko" << endl; else cout << "oda" << endl; } return 0; }