結果

問題 No.851 テストケース
ユーザー MaboyMaboy
提出日時 2021-06-27 11:55:57
言語 Swift
(5.10.0)
結果
WA  
実行時間 -
コード長 295 bytes
コンパイル時間 7,079 ms
コンパイル使用メモリ 136,976 KB
実行使用メモリ 8,120 KB
最終ジャッジ日時 2023-09-07 15:48:38
合計ジャッジ時間 7,627 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
8,000 KB
testcase_01 AC 3 ms
8,120 KB
testcase_02 WA -
testcase_03 AC 3 ms
8,036 KB
testcase_04 AC 3 ms
7,944 KB
testcase_05 AC 3 ms
7,952 KB
testcase_06 AC 3 ms
8,060 KB
testcase_07 AC 3 ms
8,092 KB
testcase_08 AC 3 ms
7,976 KB
testcase_09 AC 3 ms
8,024 KB
testcase_10 AC 3 ms
8,028 KB
testcase_11 AC 3 ms
8,092 KB
testcase_12 AC 3 ms
8,052 KB
testcase_13 AC 3 ms
7,916 KB
testcase_14 AC 3 ms
7,916 KB
testcase_15 AC 3 ms
8,028 KB
testcase_16 AC 4 ms
8,044 KB
testcase_17 AC 3 ms
7,940 KB
testcase_18 AC 3 ms
7,916 KB
testcase_19 WA -
testcase_20 WA -
testcase_21 AC 3 ms
7,940 KB
testcase_22 AC 4 ms
7,948 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let n = Int(readLine()!)!
var m = [Int]()
for _ in 1...n{
    let s = String(readLine()!)
    if s.contains(" "){
        break
    }else{
        m += [Int(s)!]
    }
}
if m == []{
    print("assert")
}else{
    let l = Array(Set([m[0]+m[1],m[0]+m[2],m[1]+m[2]])).sorted(by:>)
    print(l[1])
}
0