結果
| 問題 | 
                            No.88 次はどっちだ
                             | 
                    
| コンテスト | |
| ユーザー | 
                             バカらっく
                         | 
                    
| 提出日時 | 2018-03-03 22:07:04 | 
| 言語 | Swift  (6.0.3)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 10 ms / 5,000 ms | 
| コード長 | 264 bytes | 
| コンパイル時間 | 631 ms | 
| コンパイル使用メモリ | 117,392 KB | 
| 実行使用メモリ | 8,832 KB | 
| 最終ジャッジ日時 | 2024-11-30 12:06:46 | 
| 合計ジャッジ時間 | 1,297 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge4 / judge1 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 11 | 
コンパイルメッセージ
Main.swift:6:5: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
for i in 1...8 {
    ^
    _
            
            ソースコード
let black = readLine()!
let white = black.prefix(1) == "o" ? "yukiko" : "oda"
var count = 0
for i in 1...8 {
    let line = readLine()!
    count += line.reduce(0, {$0 + ($1 != "." ? 1 : 0)})
}
if(count % 2  == 0) {
    print(black)
} else {
    print(white)
}
            
            
            
        
            
バカらっく