結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2019-06-06 09:10:19 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 444 bytes |
コンパイル時間 | 514 ms |
コンパイル使用メモリ | 60,964 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-09-24 18:03:18 |
合計ジャッジ時間 | 1,010 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream> #include <cstring> #include <cmath> using namespace std; int main(){ string a; char b[10][10] = {"0"}; cin >> a ; int i,j; for(i=0; i<8; i++){ cin>>b[i]; } int bl=0; int wt=0; for(i=0;i<8;i++){ for(j=0;j<8;j++){ if(b[i][j] == 'b') bl++; if(b[i][j]== 'w') wt++; } } if((bl+wt)%2 == 0) cout << a; else{ if(a == "oda") cout << "yukiko"; else cout << "oda"; } cout << endl; return 0; }