結果

問題 No.480 合計
ユーザー uchida_tuchida_t
提出日時 2023-03-31 12:42:55
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 304 ms / 2,000 ms
コード長 114 bytes
コンパイル時間 12,413 ms
コンパイル使用メモリ 428,492 KB
実行使用メモリ 51,880 KB
最終ジャッジ日時 2023-10-24 00:29:14
合計ジャッジ時間 20,776 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 272 ms
51,868 KB
testcase_01 AC 271 ms
51,868 KB
testcase_02 AC 266 ms
51,860 KB
testcase_03 AC 267 ms
51,876 KB
testcase_04 AC 267 ms
51,872 KB
testcase_05 AC 268 ms
51,876 KB
testcase_06 AC 269 ms
51,876 KB
testcase_07 AC 269 ms
51,880 KB
testcase_08 AC 271 ms
51,876 KB
testcase_09 AC 272 ms
51,876 KB
testcase_10 AC 269 ms
51,876 KB
testcase_11 AC 264 ms
51,876 KB
testcase_12 AC 265 ms
51,868 KB
testcase_13 AC 265 ms
51,876 KB
testcase_14 AC 264 ms
51,864 KB
testcase_15 AC 278 ms
51,872 KB
testcase_16 AC 278 ms
51,876 KB
testcase_17 AC 284 ms
51,872 KB
testcase_18 AC 264 ms
51,864 KB
testcase_19 AC 291 ms
51,876 KB
testcase_20 AC 292 ms
51,864 KB
testcase_21 AC 304 ms
51,868 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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