結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
motxx
|
| 提出日時 | 2014-12-07 19:04:44 |
| 言語 | C++11(old_compat) (gcc 12.4.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 5,000 ms |
| コード長 | 440 bytes |
| 記録 | |
| コンパイル時間 | 1,357 ms |
| コンパイル使用メモリ | 167,136 KB |
| 実行使用メモリ | 7,844 KB |
| 最終ジャッジ日時 | 2026-03-08 15:59:39 |
| 合計ジャッジ時間 | 1,619 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
#define REP(i,a,b) for(int i=a;i<(int)b;i++)
#define rep(i,n) REP(i,0,n)
string ban[2] = {"oda", "yukiko"};
int main() {
string s; cin >> s;
int cnt = 0;
if(s == "yukiko") cnt ++;
rep(i, 8) rep(j, 8) {
char ch; cin >> ch;
if(ch != '.') cnt ++;
}
if((64-cnt) % 2 == 0) cout << ban[0] << endl;
else cout << ban[1] << endl;
return 0;
}
motxx