結果
問題 |
No.88 次はどっちだ
|
ユーザー |
![]() |
提出日時 | 2016-05-04 15:48:41 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 584 bytes |
コンパイル時間 | 1,399 ms |
コンパイル使用メモリ | 158,320 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-05 06:29:37 |
合計ジャッジ時間 | 1,735 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <bits/stdc++.h> #define rep(i,a,n) for(int i=a;i<n;i++) #define repb(i,a,b) for(int i=a;i>=b;i--) #define all(a) a.begin(),a.end() #define o(a) cout<<a<<endl #define int long long #define fi first #define se second using namespace std; typedef vector<int> vi; typedef vector<vi> vvi; typedef pair<int,int> pii; signed main(){ string s; int b=0,w=0; cin>>s; rep(i,0,8){ rep(j,0,8){ char c; cin>>c; if(c=='b') b++; else if(c=='w') w++; } } if(((b+w)%2 && s=="oda")||((b+w)%2==0 && s=="yukiko")){ cout<<"yukiko"<<endl; }else{ cout<<"oda"<<endl; } }