結果

問題 No.570 3人兄弟(その1)
コンテスト
ユーザー kazu116
提出日時 2019-05-10 19:20:31
言語 Swift
(6.2.4)
コンパイル:
swiftc _filename_ -Ounchecked -o a.out
実行:
./a.out
結果
AC  
実行時間 5 ms / 2,000 ms
コード長 366 bytes
記録
記録タグの例:
初AC ショートコード 純ショートコード 純主流ショートコード 最速実行時間
コンパイル時間 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
権限があれば一括ダウンロードができます

ソースコード

diff #
raw source code

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]!)
}
0