結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
kichirb3
|
| 提出日時 | 2018-03-06 08:15:25 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 597 bytes |
| コンパイル時間 | 698 ms |
| コンパイル使用メモリ | 73,088 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-14 20:55:48 |
| 合計ジャッジ時間 | 1,316 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
// No.88 次はどっちだ
// https://yukicoder.me/problems/no/88
//
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
using namespace std;
int main() {
std::cin.tie(nullptr);
std::ios::sync_with_stdio(false);
string S;
cin >> S;
int blank = 0;
for (auto i = 0; i < 8; ++i) {
string tmp;
cin >> tmp;
blank += count(tmp.begin(), tmp.end(), '.');
}
vector<string> table {"yukiko", "oda"};
if (S == "oda") {
table[0] = "oda";
table[1] = "yukiko";
}
cout << table[blank % 2] << endl;
}
kichirb3