結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
tkzw_21
|
| 提出日時 | 2014-12-07 19:04:54 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 476 bytes |
| コンパイル時間 | 586 ms |
| コンパイル使用メモリ | 64,740 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-11 16:05:40 |
| 合計ジャッジ時間 | 1,175 ms |
|
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <string>
#include <map>
#include <vector>
using namespace std;
int main(void){
string s1,s2;
cin >> s1;
if(s1 == "oda")s2 = "yukiko";
else s2 = "oda";
vector<string> vs(8);
for(int i=0;i<8;i++){
cin >> vs[i];
}
int cnt = 0;
for(int i=0;i<8;i++){
for(int j=0;j<8;j++){
if(vs[i][j] != '.')cnt++;
}
}
cnt -= 4;
if(cnt % 2 == 0){
cout << s1 << endl;
}else{
cout << s2 << endl;
}
return 0;
}
tkzw_21