結果
| 問題 |
No.88 次はどっちだ
|
| コンテスト | |
| ユーザー |
miku39kk
|
| 提出日時 | 2017-07-29 11:09:13 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
| 結果 |
AC
|
| 実行時間 | 2 ms / 5,000 ms |
| コード長 | 453 bytes |
| コンパイル時間 | 754 ms |
| コンパイル使用メモリ | 65,156 KB |
| 実行使用メモリ | 6,820 KB |
| 最終ジャッジ日時 | 2024-10-10 21:31:25 |
| 合計ジャッジ時間 | 1,137 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 11 |
ソースコード
#include <iostream>
#include <vector>
#include <string>
#include <algorithm>
#include <math.h>
using namespace std;
int main() {
string s,s2 = "oda";
cin >> s;
if(s == "oda")s2 = "yukiko";
int c = 0;
for(int i = 0;i < 8;i++){
string b;
cin >> b;
for(int j = 0;j < 8;j++){
if(b[j] == '.')c++;
}
}
if(c % 2 == 0)cout << s << endl;
else cout << s2 << endl;
return 0;
}
miku39kk