結果
問題 | No.88 次はどっちだ |
ユーザー |
![]() |
提出日時 | 2016-08-15 09:17:08 |
言語 | C++11 (gcc 13.3.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 418 bytes |
コンパイル時間 | 645 ms |
コンパイル使用メモリ | 56,668 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-11-07 17:00:38 |
合計ジャッジ時間 | 1,263 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
ソースコード
#include <iostream>#include <string>using namespace std;int main() {string S;int disc_num = 0;string name[2] = { "oda","yukiko" };string boards[8];cin >> S;if (S == "yukiko") { disc_num++; }for (int i = 0; i < 8;i++) {cin >> boards[i];for (int j = 0; j < 8; j++) {if (boards[i][j] == 'w' || boards[i][j] == 'b') {disc_num++;}}}cout << name[disc_num % 2] << endl;return 0;}