結果

問題 No.481 1から10
ユーザー kazu116kazu116
提出日時 2019-05-22 18:37:50
言語 Swift
(5.10.0)
結果
AC  
実行時間 4 ms / 2,000 ms
コード長 150 bytes
コンパイル時間 1,382 ms
コンパイル使用メモリ 127,348 KB
実行使用メモリ 8,208 KB
最終ジャッジ日時 2023-08-20 12:25:41
合計ジャッジ時間 1,800 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
8,120 KB
testcase_01 AC 3 ms
8,180 KB
testcase_02 AC 3 ms
8,056 KB
testcase_03 AC 3 ms
8,096 KB
testcase_04 AC 3 ms
8,208 KB
testcase_05 AC 4 ms
8,080 KB
testcase_06 AC 3 ms
8,076 KB
testcase_07 AC 3 ms
8,108 KB
testcase_08 AC 3 ms
8,076 KB
testcase_09 AC 3 ms
8,076 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let input:[Int] = readLine()!.split(separator: " ").map{Int($0)!}

for i in 1 ... 10 {
    if input[i-1] != i {
        print(i)
        break
    }
}
0