結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
Elk
|
| 提出日時 | 2018-07-24 14:01:10 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 564 bytes |
| コンパイル時間 | 1,680 ms |
| コンパイル使用メモリ | 171,012 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-06-23 03:21:42 |
| 合計ジャッジ時間 | 2,275 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
vector <string> str;
string tmp, name, name2;
int i, j, cnt = 0;
cin >> name;
if(name == "oda"){
name2 = "yukiko";
}else{
name2 = "oda";
}
while(cin >> tmp){
str.push_back(tmp);
}
for(i = 0; i < 8; i++){
for(j = 0; j < 8; j++){
if(str[i][j] != '.'){
cnt++;
}
}
}
if(cnt%2 == 0){
cout << name << endl;
}else{
cout << name2 << endl;
}
return 0;
}
Elk