結果

問題 No.480 合計
ユーザー momonga_appsmomonga_apps
提出日時 2022-09-25 20:55:35
言語 Kotlin
(1.9.23)
結果
AC  
実行時間 273 ms / 2,000 ms
コード長 83 bytes
コンパイル時間 10,796 ms
コンパイル使用メモリ 408,248 KB
実行使用メモリ 51,644 KB
最終ジャッジ日時 2023-08-24 01:52:30
合計ジャッジ時間 17,944 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 267 ms
50,564 KB
testcase_01 AC 269 ms
50,232 KB
testcase_02 AC 273 ms
50,468 KB
testcase_03 AC 269 ms
50,260 KB
testcase_04 AC 266 ms
50,320 KB
testcase_05 AC 265 ms
50,108 KB
testcase_06 AC 270 ms
50,104 KB
testcase_07 AC 265 ms
50,084 KB
testcase_08 AC 271 ms
50,112 KB
testcase_09 AC 263 ms
50,204 KB
testcase_10 AC 269 ms
50,424 KB
testcase_11 AC 270 ms
50,248 KB
testcase_12 AC 264 ms
50,296 KB
testcase_13 AC 273 ms
50,192 KB
testcase_14 AC 269 ms
50,284 KB
testcase_15 AC 261 ms
50,404 KB
testcase_16 AC 270 ms
50,228 KB
testcase_17 AC 270 ms
51,644 KB
testcase_18 AC 272 ms
50,292 KB
testcase_19 AC 271 ms
50,236 KB
testcase_20 AC 271 ms
50,112 KB
testcase_21 AC 273 ms
50,240 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.kt:1:10: warning: parameter 'args' is never used
fun main(args: Array<String>) {
         ^

ソースコード

diff #

fun main(args: Array<String>) {
	val n = readLine()!!.toInt()
	println(n*(n+1)/2)
}
0