結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-04-08 11:10:00 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 6 ms / 5,000 ms |
| コード長 | 489 bytes |
| 記録 | |
| コンパイル時間 | 1,023 ms |
| コンパイル使用メモリ | 70,464 KB |
| 最終ジャッジ日時 | 2025-01-09 15:08:02 |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <algorithm>
#include <string>
void solve() {
std::string s;
std::cin >> s;
int t = 0;
for (int i = 0; i < 8; ++i) {
for (int j = 0; j < 8; ++j) {
char c;
std::cin >> c;
if (c != '.') ++t;
}
}
std::cout << ((t % 2 == 0) == (s == "oda") ? "oda" : "yukiko") << std::endl;
}
int main() {
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
solve();
return 0;
}