結果
問題 | No.516 赤と青の風船 |
ユーザー | kazu116 |
提出日時 | 2019-05-22 17:04:00 |
言語 | Swift (5.10.0) |
結果 |
AC
|
実行時間 | 4 ms / 2,000 ms |
コード長 | 197 bytes |
コンパイル時間 | 1,033 ms |
コンパイル使用メモリ | 107,332 KB |
実行使用メモリ | 7,592 KB |
最終ジャッジ日時 | 2023-08-20 12:25:33 |
合計ジャッジ時間 | 1,996 ms |
ジャッジサーバーID (参考情報) |
judge14 / judge15 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 3 ms
7,436 KB |
testcase_01 | AC | 3 ms
7,500 KB |
testcase_02 | AC | 3 ms
7,592 KB |
testcase_03 | AC | 3 ms
7,580 KB |
testcase_04 | AC | 4 ms
7,436 KB |
testcase_05 | AC | 3 ms
7,520 KB |
testcase_06 | AC | 3 ms
7,508 KB |
testcase_07 | AC | 3 ms
7,452 KB |
コンパイルメッセージ
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)