結果
| 問題 | 
                            No.88 次はどっちだ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             akanaya
                         | 
                    
| 提出日時 | 2020-03-22 17:49:53 | 
| 言語 | Python3  (3.13.1 + numpy 2.2.1 + scipy 1.14.1)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 611 ms / 5,000 ms | 
| コード長 | 532 bytes | 
| コンパイル時間 | 260 ms | 
| コンパイル使用メモリ | 12,416 KB | 
| 実行使用メモリ | 44,340 KB | 
| 最終ジャッジ日時 | 2024-12-25 07:44:33 | 
| 合計ジャッジ時間 | 10,285 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge2 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
ソースコード
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])
    
    
            
            
            
        
            
akanaya