結果
| 問題 | No.88 次はどっちだ | 
| コンテスト | |
| ユーザー |  lam6er | 
| 提出日時 | 2025-03-20 21:06:16 | 
| 言語 | PyPy3 (7.3.15) | 
| 結果 | 
                                AC
                                 
                             | 
| 実行時間 | 38 ms / 5,000 ms | 
| コード長 | 324 bytes | 
| コンパイル時間 | 171 ms | 
| コンパイル使用メモリ | 82,528 KB | 
| 実行使用メモリ | 54,048 KB | 
| 最終ジャッジ日時 | 2025-03-20 21:06:19 | 
| 合計ジャッジ時間 | 1,068 ms | 
| ジャッジサーバーID (参考情報) | judge3 / judge4 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
ソースコード
s = input().strip()
board = [input().strip() for _ in range(8)]
count_b = sum(row.count('b') for row in board)
count_w = sum(row.count('w') for row in board)
n_moves = count_b + count_w - 4
next_color = 'b' if n_moves % 2 == 0 else 'w'
if next_color == 'b':
    print(s)
else:
    print('yukiko' if s == 'oda' else 'oda')
            
            
            
        