結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2020-09-17 19:33:02 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 560 bytes |
| コンパイル時間 | 715 ms |
| コンパイル使用メモリ | 72,712 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-06-22 06:46:19 |
| 合計ジャッジ時間 | 1,297 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include<iostream>
#include<vector>
#include<string>
using namespace std;
vector<vector<char>> reversi(8,vector<char>(8));
int main(){
string s;
int cnt = 0;
cin >> s;
for(int i=0;i < 8;i++){
for(int j=0;j < 8;j++){
cin >> reversi.at(i).at(j);
if(reversi.at(i).at(j) != '.'){
cnt++;
}
}
}
if(cnt % 2 == 0) cout << s << endl;
else {
if(s == "oda") cout << "yukiko" << endl;
else if(s == "yukiko") cout << "oda" << endl;
}
return 0;
}