結果

問題 No.88 次はどっちだ
ユーザー akanayaakanaya
提出日時 2020-03-22 17:49:53
言語 Python3
(3.12.2 + numpy 1.26.4 + scipy 1.12.0)
結果
AC  
実行時間 142 ms / 5,000 ms
コード長 532 bytes
コンパイル時間 103 ms
コンパイル使用メモリ 10,640 KB
実行使用メモリ 29,748 KB
最終ジャッジ日時 2023-08-26 12:06:16
合計ジャッジ時間 5,134 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 140 ms
29,648 KB
testcase_01 AC 140 ms
29,688 KB
testcase_02 AC 138 ms
29,596 KB
testcase_03 AC 139 ms
29,520 KB
testcase_04 AC 142 ms
29,620 KB
testcase_05 AC 142 ms
29,552 KB
testcase_06 AC 141 ms
29,748 KB
testcase_07 AC 139 ms
29,632 KB
testcase_08 AC 140 ms
29,604 KB
testcase_09 AC 137 ms
29,532 KB
testcase_10 AC 138 ms
29,608 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import math
import numpy as np
import queue
import sys 

input = sys.stdin.readline
# sys.setrecursionlimit(25000)

s = input().strip()

players = ['oda', 'yukiko']
stones = 0

for i in range(8):
    row = input()

    stones += row.count('w')
    stones += row.count('b')

if s == players[0] and stones % 2 == 0:
    print(players[0])
if s == players[1] and stones % 2 == 0:
    print(players[1])
if s == players[0] and stones % 2 == 1:
    print(players[1])
if s == players[1] and stones % 2 == 1:
    print(players[0])
    
    
0