結果

問題 No.395 永遠の17歳
ユーザー バカらっくバカらっく
提出日時 2018-03-03 14:53:41
言語 Swift
(5.10.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 92 bytes
コンパイル時間 976 ms
コンパイル使用メモリ 119,764 KB
実行使用メモリ 7,828 KB
最終ジャッジ日時 2023-08-20 10:28:24
合計ジャッジ時間 1,934 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 3 ms
7,548 KB
testcase_01 AC 4 ms
7,808 KB
testcase_02 AC 4 ms
7,828 KB
testcase_03 AC 4 ms
7,692 KB
testcase_04 AC 3 ms
7,652 KB
testcase_05 AC 3 ms
7,732 KB
testcase_06 AC 3 ms
7,808 KB
testcase_07 AC 3 ms
7,652 KB
testcase_08 AC 3 ms
7,676 KB
testcase_09 AC 3 ms
7,664 KB
testcase_10 AC 4 ms
7,544 KB
testcase_11 AC 3 ms
7,692 KB
testcase_12 AC 3 ms
7,652 KB
testcase_13 AC 4 ms
7,708 KB
testcase_14 AC 4 ms
7,812 KB
testcase_15 AC 4 ms
7,572 KB
testcase_16 AC 3 ms
7,804 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let inpt = Int(readLine()!)!

var ans = inpt - 7

if(ans < 8) {
    ans = -1
}

print(ans)
0