結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2022-09-10 15:43:12 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 422 bytes |
コンパイル時間 | 795 ms |
コンパイル使用メモリ | 71,296 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-26 19:57:41 |
合計ジャッジ時間 | 1,547 ms |
ジャッジサーバーID (参考情報) |
judge4 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream>#include <vector>#include <string>using namespace std;int main(){string s; cin >> s;vector<string> b(8);for(auto &it: b) cin >> it;int cnt = 0;for(int i = 0; i < 8; i++){for(int j = 0; j < 8; j++){if(b[i][j] != '.') cnt++;}}if((cnt%2 == 0) == (s == "oda")) cout << "oda" << endl;else cout << "yukiko" << endl;return 0;}