結果
| 問題 | 
                            No.516 赤と青の風船
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2019-05-22 17:04:00 | 
| 言語 | Swift  (6.0.3)  | 
                    
| 結果 | 
                             
                                AC
                                 
                             
                            
                         | 
                    
| 実行時間 | 8 ms / 2,000 ms | 
| コード長 | 197 bytes | 
| コンパイル時間 | 616 ms | 
| コンパイル使用メモリ | 116,740 KB | 
| 実行使用メモリ | 8,832 KB | 
| 最終ジャッジ日時 | 2024-11-30 14:08:04 | 
| 合計ジャッジ時間 | 1,160 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge3 | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| sample | AC * 2 | 
| other | AC * 6 | 
コンパイルメッセージ
Main.swift:2:5: warning: immutable value 'i' was never used; consider replacing with '_' or removing it
for i in 0 ... 2 {
    ^
    _
            
            ソースコード
var count:Int = 0
for i in 0 ... 2 {
    let input:[String] = readLine()!.map{String($0)}
    if input[0] == "R" {
        count += 1
    }
}
let output = count >= 2 ? "RED" : "BLUE"
print(output)