結果
問題 | No.88 次はどっちだ |
ユーザー | masa |
提出日時 | 2015-02-26 16:58:01 |
言語 | C++11 (gcc 11.4.0) |
結果 |
AC
|
実行時間 | 2 ms / 5,000 ms |
コード長 | 509 bytes |
コンパイル時間 | 454 ms |
コンパイル使用メモリ | 61,692 KB |
実行使用メモリ | 4,388 KB |
最終ジャッジ日時 | 2023-09-06 05:06:00 |
合計ジャッジ時間 | 1,234 ms |
ジャッジサーバーID (参考情報) |
judge15 / judge14 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 1 ms
4,380 KB |
testcase_01 | AC | 2 ms
4,376 KB |
testcase_02 | AC | 1 ms
4,380 KB |
testcase_03 | AC | 1 ms
4,376 KB |
testcase_04 | AC | 1 ms
4,380 KB |
testcase_05 | AC | 2 ms
4,380 KB |
testcase_06 | AC | 1 ms
4,384 KB |
testcase_07 | AC | 2 ms
4,388 KB |
testcase_08 | AC | 1 ms
4,376 KB |
testcase_09 | AC | 1 ms
4,376 KB |
testcase_10 | AC | 1 ms
4,380 KB |
ソースコード
#include <iostream> #include <cstdio> #include <vector> #include <algorithm> #include <utility> #include <string> using namespace std; const int LENGTH = 8; int main() { string s, b; int stone = 0; cin >> s; for (int i = 0; i < LENGTH; i++) { cin >> b; for (int j = 0; j < LENGTH; j++) { if (b[j] != '.') { stone++; } } } stone %= 2; if ((s == "oda" && stone == 0) || (s == "yukiko" && stone == 1)) { cout << "oda" << endl; } else { cout << "yukiko" << endl; } return 0; }