結果
| 問題 |
No.570 3人兄弟(その1)
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-05-10 19:20:31 |
| 言語 | Swift (6.0.3) |
| 結果 |
AC
|
| 実行時間 | 8 ms / 2,000 ms |
| コード長 | 366 bytes |
| コンパイル時間 | 1,293 ms |
| コンパイル使用メモリ | 133,152 KB |
| 実行使用メモリ | 9,344 KB |
| 最終ジャッジ日時 | 2024-11-30 14:07:11 |
| 合計ジャッジ時間 | 1,779 ms |
|
ジャッジサーバーID (参考情報) |
judge5 / judge4 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 5 |
ソースコード
let a:[Int] = readLine()!.split(separator: " ").map{Int($0)!}
let b:[Int] = readLine()!.split(separator: " ").map{Int($0)!}
let c:[Int] = readLine()!.split(separator: " ").map{Int($0)!}
var heights:[Int] = [a[0], b[0], c[0]]
heights.sort{$1 < $0}
let dictionary:[Int:String] = [a[0]:"A", b[0]:"B", c[0]:"C"]
for height in heights {
print(dictionary[height]!)
}