結果
| 問題 | No.88 次はどっちだ |
| コンテスト | |
| ユーザー |
machy
|
| 提出日時 | 2015-06-11 20:29:29 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 597 bytes |
| 記録 | |
| コンパイル時間 | 581 ms |
| コンパイル使用メモリ | 72,608 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-06 15:43:47 |
| 合計ジャッジ時間 | 1,079 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <algorithm>
#include <vector>
#include <string>
#include <cmath>
#include <iomanip>
using namespace std;
typedef long long LL;
int main(){
string sente;
cin >> sente;
int cnt = 0;
for(int i = 0; i < 8; i++){
string line;
cin>> line;
for(int j = 0; j < 8; j++){
if(line[j] != '.') cnt++;
}
}
if(cnt % 2 == 0){
cout << sente << endl;
}else{
if(sente == "oda"){
cout << "yukiko" << endl;
}else{
cout << "oda" << endl;
}
}
return 0;
}
machy