結果
問題 | No.88 次はどっちだ |
ユーザー |
|
提出日時 | 2020-01-18 10:56:22 |
言語 | C++17 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 3 ms / 5,000 ms |
コード長 | 372 bytes |
コンパイル時間 | 980 ms |
コンパイル使用メモリ | 73,700 KB |
最終ジャッジ日時 | 2025-01-08 19:57:09 |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream>#include <vector>using namespace std;int main(void) {string s; cin >> s;vector<string> G(8);for(int r=0; r<8; ++r) { cin >> G[r]; }int cnt = s == "oda";for(int r=0; r<8; ++r) {for(int c=0; c<8; ++c) {if(G[r][c] != '.') { ++cnt; }}}string res = (cnt & 1) ? "oda" : "yukiko";cout << res << '\n';return 0;}