結果

問題 No.480 合計
ユーザー kotakota
提出日時 2022-05-17 17:05:54
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 255 ms / 2,000 ms
コード長 125 bytes
コンパイル時間 11,683 ms
コンパイル使用メモリ 411,868 KB
実行使用メモリ 52,248 KB
最終ジャッジ日時 2023-10-13 15:08:43
合計ジャッジ時間 18,639 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 229 ms
50,092 KB
testcase_01 AC 230 ms
50,204 KB
testcase_02 AC 244 ms
50,132 KB
testcase_03 AC 253 ms
50,784 KB
testcase_04 AC 255 ms
51,232 KB
testcase_05 AC 234 ms
50,208 KB
testcase_06 AC 245 ms
50,180 KB
testcase_07 AC 233 ms
50,180 KB
testcase_08 AC 232 ms
50,344 KB
testcase_09 AC 234 ms
50,144 KB
testcase_10 AC 242 ms
50,084 KB
testcase_11 AC 236 ms
50,180 KB
testcase_12 AC 235 ms
50,232 KB
testcase_13 AC 234 ms
50,452 KB
testcase_14 AC 243 ms
50,564 KB
testcase_15 AC 229 ms
50,276 KB
testcase_16 AC 232 ms
50,108 KB
testcase_17 AC 237 ms
50,084 KB
testcase_18 AC 229 ms
50,340 KB
testcase_19 AC 236 ms
52,248 KB
testcase_20 AC 242 ms
50,220 KB
testcase_21 AC 248 ms
50,236 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val n = readLine()!!.toInt()
    var ans = 0
    for (i in 1..n) {
        ans += i
    }
    println(ans)
}
0