結果

問題 No.480 合計
ユーザー rutilicus
提出日時 2020-08-30 20:35:25
言語 Kotlin
(2.1.0)
結果
AC  
実行時間 300 ms / 2,000 ms
コード長 215 bytes
コンパイル時間 10,515 ms
コンパイル使用メモリ 429,536 KB
実行使用メモリ 54,340 KB
最終ジャッジ日時 2024-11-15 15:16:47
合計ジャッジ時間 18,260 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
other AC * 22
権限があれば一括ダウンロードができます

ソースコード

diff #

fun main() {
    val builder = StringBuilder()

    val n = readInputLine().toInt()

    builder.appendLine(n * (n + 1) / 2)

    print(builder.toString())
}

fun readInputLine(): String {
    return readLine()!!
}
0