結果
問題 |
No.88 次はどっちだ
|
ユーザー |
|
提出日時 | 2015-02-26 16:58:01 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 509 bytes |
コンパイル時間 | 723 ms |
コンパイル使用メモリ | 60,328 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-23 23:49:04 |
合計ジャッジ時間 | 1,125 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <utility> #include <string> using namespace std; const int LENGTH = 8; int main() { string s, b; int stone = 0; cin >> s; for (int i = 0; i < LENGTH; i++) { cin >> b; for (int j = 0; j < LENGTH; j++) { if (b[j] != '.') { stone++; } } } stone %= 2; if ((s == "oda" && stone == 0) || (s == "yukiko" && stone == 1)) { cout << "oda" << endl; } else { cout << "yukiko" << endl; } return 0; }