結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2015-01-26 15:01:54 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 649 bytes |
コンパイル時間 | 642 ms |
コンパイル使用メモリ | 82,728 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-06-23 03:14:53 |
合計ジャッジ時間 | 1,012 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#define _CRT_SECURE_NO_WARNINGS #define _USE_MATH_DEFINES #include <iostream> #include <map> #include <list> #include <cstdio> #include <cmath> #include <cstring> #include <string> #include <vector> #include <algorithm> #include <utility> #include <queue> #include <iomanip> using namespace std; int main(void) { string name; string line; int cnt = 0; cin >> name; for (int i = 0; i < 8; i++) { cin >> line; for (int j = 0; j < line.length(); j++) { if(line[j] != '.') cnt++; } } if (cnt % 2 == 0) cout << name << endl; else { if (name == "oda") cout << "yukiko" << endl; else cout << "oda" << endl; } return (0); }