結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2018-02-07 18:24:54 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 796 bytes |
コンパイル時間 | 755 ms |
コンパイル使用メモリ | 85,468 KB |
実行使用メモリ | 5,376 KB |
最終ジャッジ日時 | 2024-09-16 07:35:17 |
合計ジャッジ時間 | 1,330 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include<iostream>#include<string>#include<string.h>#include<algorithm>#include<stdio.h>#include<cmath>#include<vector>#include<utility>#include<stack>#include<queue>#include<list>#include<bitset>#include<functional>#define FOR(i, a, b) for(int i=(a);i<=(b);i++)#define RFOR(i, a, b) for(int i=(a);i>=(b);i--)#define MOD 1000000007#define INF 1000000000#define PI 3.14159265358979using namespace std;typedef pair<int, int> P;int main(void) {string s;vector<string>a(9);int count = 0;cin >> s;FOR(i, 1, 8) {cin >> a[i];FOR(t, 0, 7) {if (a[i][t] == 'b'||a[i][t]=='w') {count++;}}}if (count%2==0) {cout << s << endl;}else {if (s == "oda") {cout << "yukiko" << endl;}else {cout << "oda" << endl;}}return 0;}