結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
SSRS
|
| 提出日時 | 2020-11-06 22:42:32 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 457 bytes |
| コンパイル時間 | 1,495 ms |
| コンパイル使用メモリ | 169,052 KB |
| 実行使用メモリ | 6,944 KB |
| 最終ジャッジ日時 | 2024-07-22 13:22:58 |
| 合計ジャッジ時間 | 2,098 ms |
|
ジャッジサーバーID (参考情報) |
judge4 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
string S;
cin >> S;
vector<string> B(8);
for (int i = 0; i < 8; i++){
cin >> B[i];
}
int cnt = 0;
for (int i = 0; i < 8; i++){
for (int j = 0; j < 8; j++){
if (B[i][j] != '.'){
cnt++;
}
}
}
if (cnt % 2 == 0){
cout << S << endl;
} else {
if (S == "oda"){
cout << "yukiko" << endl;
} else {
cout << "oda" << endl;
}
}
}
SSRS