結果

問題 No.480 合計
ユーザー tk_dango0012tk_dango0012
提出日時 2018-09-04 22:00:16
言語 Scala(Beta)
(3.4.0)
結果
AC  
実行時間 965 ms / 2,000 ms
コード長 85 bytes
コンパイル時間 7,849 ms
コンパイル使用メモリ 228,772 KB
実行使用メモリ 62,168 KB
最終ジャッジ日時 2023-09-13 19:41:35
合計ジャッジ時間 29,419 ms
ジャッジサーバーID
(参考情報)
judge13 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 919 ms
61,540 KB
testcase_01 AC 909 ms
61,664 KB
testcase_02 AC 900 ms
61,720 KB
testcase_03 AC 923 ms
61,680 KB
testcase_04 AC 912 ms
61,836 KB
testcase_05 AC 911 ms
61,732 KB
testcase_06 AC 927 ms
61,608 KB
testcase_07 AC 917 ms
62,168 KB
testcase_08 AC 929 ms
61,608 KB
testcase_09 AC 931 ms
61,800 KB
testcase_10 AC 919 ms
61,768 KB
testcase_11 AC 955 ms
61,788 KB
testcase_12 AC 950 ms
61,660 KB
testcase_13 AC 911 ms
61,796 KB
testcase_14 AC 906 ms
61,652 KB
testcase_15 AC 926 ms
61,808 KB
testcase_16 AC 930 ms
61,660 KB
testcase_17 AC 951 ms
61,772 KB
testcase_18 AC 958 ms
61,652 KB
testcase_19 AC 946 ms
61,696 KB
testcase_20 AC 965 ms
61,668 KB
testcase_21 AC 956 ms
61,556 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

object Main extends App {
    val n = scala.io.StdIn.readInt
    println(n*(n+1)/2)
}
0