結果

問題 No.1903 Day1
ユーザー YamaG NakaYamaG Naka
提出日時 2022-04-19 18:50:43
言語 Swift
(5.10.0)
結果
AC  
実行時間 4 ms / 1,000 ms
コード長 87 bytes
コンパイル時間 13,993 ms
コンパイル使用メモリ 120,152 KB
実行使用メモリ 7,728 KB
最終ジャッジ日時 2023-08-30 17:04:17
合計ジャッジ時間 13,592 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 4 ms
7,700 KB
testcase_01 AC 3 ms
7,540 KB
testcase_02 AC 3 ms
7,728 KB
testcase_03 AC 3 ms
7,668 KB
testcase_04 AC 3 ms
7,596 KB
testcase_05 AC 3 ms
7,568 KB
testcase_06 AC 3 ms
7,448 KB
testcase_07 AC 3 ms
7,556 KB
testcase_08 AC 3 ms
7,648 KB
testcase_09 AC 3 ms
7,532 KB
testcase_10 AC 3 ms
7,528 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

let t = Int(readLine()!)!
if t > 6 {
    print((t - 6) * 7 + 6)
} else {
    print(t)
}
0