結果

問題 No.88 次はどっちだ
ユーザー neterukunneterukun
提出日時 2019-04-27 16:46:19
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 12 ms / 5,000 ms
コード長 263 bytes
コンパイル時間 451 ms
コンパイル使用メモリ 10,680 KB
実行使用メモリ 7,928 KB
最終ジャッジ日時 2023-08-19 02:03:27
合計ジャッジ時間 1,417 ms
ジャッジサーバーID
(参考情報)
judge13 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 12 ms
7,800 KB
testcase_01 AC 12 ms
7,736 KB
testcase_02 AC 11 ms
7,928 KB
testcase_03 AC 12 ms
7,728 KB
testcase_04 AC 12 ms
7,912 KB
testcase_05 AC 12 ms
7,756 KB
testcase_06 AC 12 ms
7,684 KB
testcase_07 AC 12 ms
7,752 KB
testcase_08 AC 12 ms
7,876 KB
testcase_09 AC 12 ms
7,800 KB
testcase_10 AC 11 ms
7,876 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

first = input()
if first == "oda":
    second = "yukiko"
elif first == "yukiko":
    second = "oda"

s = [input() for i in range(8)]
cnt = 0
for i in range(8):
    cnt += s[i].count("b") + s[i].count("w")

if cnt % 2 == 0:
    print(first)
else:
    print(second)
0