結果
| 問題 | No.570 3人兄弟(その1) |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-05-10 19:20:31 |
| 言語 | Swift (6.2.4) |
| 結果 |
AC
|
| 実行時間 | 5 ms / 2,000 ms |
| コード長 | 366 bytes |
| 記録 | |
| コンパイル時間 | 13,513 ms |
| コンパイル使用メモリ | 148,576 KB |
| 実行使用メモリ | 9,856 KB |
| 最終ジャッジ日時 | 2026-05-24 05:35:27 |
| 合計ジャッジ時間 | 3,224 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge3_1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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]!)
}