結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2015-03-25 22:47:07 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 525 bytes |
コンパイル時間 | 453 ms |
コンパイル使用メモリ | 58,188 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-29 00:57:55 |
合計ジャッジ時間 | 878 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <algorithm> int main() { long i, j, k; long ans; long count = 0; std::string str[10]; for(i = 0; i < 9; i++) { std::cin >> str[i]; } for(i = 1; i <= 9; i++) { for(j = 0; j < 8; j++) { if(str[i][j] == '.') { count++; } } } if((count&0x01) == 0) { std::cout << str[0] << std::endl; } else { if(str[0] == "oda") { std::cout << "yukiko" << std::endl; } else { std::cout << "oda" << std::endl; } } return 0; }