結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2014-12-07 20:09:06 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 666 bytes |
| コンパイル時間 | 590 ms |
| コンパイル使用メモリ | 81,964 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-11 16:24:22 |
| 合計ジャッジ時間 | 1,095 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <string>
#include <vector>
using namespace std;
typedef pair<int, int> pii;
typedef vector<int> vi;
#define rep(i,x) for(int i=0;i<(int)(x);i++)
int main(){
int cnt = 0;
string p, l;
cin >> p;
rep(i,8) {
cin >> l;
rep(j,8) if (l[j]!='.') ++cnt;
}
if ((cnt-4)%2) {
if (p=="oda") cout << "yukiko" << endl;
else cout << "oda" << endl;
} else {
if (p=="oda") cout << "oda" << endl;
else cout << "yukiko" << endl;
}
return 0;
}