結果

問題 No.480 合計
ユーザー jimanojimano
提出日時 2018-01-08 13:15:43
言語 Java21
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 3,485 ms
コンパイル使用メモリ 72,300 KB
実行使用メモリ 56,684 KB
最終ジャッジ日時 2023-08-25 00:27:49
合計ジャッジ時間 6,811 ms
ジャッジサーバーID
(参考情報)
judge13 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 123 ms
55,856 KB
testcase_01 AC 119 ms
56,024 KB
testcase_02 AC 118 ms
56,200 KB
testcase_03 AC 119 ms
56,404 KB
testcase_04 AC 122 ms
56,684 KB
testcase_05 AC 123 ms
55,832 KB
testcase_06 AC 122 ms
55,736 KB
testcase_07 AC 121 ms
55,888 KB
testcase_08 AC 120 ms
55,584 KB
testcase_09 AC 119 ms
56,072 KB
testcase_10 AC 122 ms
56,244 KB
testcase_11 AC 123 ms
56,064 KB
testcase_12 AC 125 ms
55,988 KB
testcase_13 AC 122 ms
55,868 KB
testcase_14 AC 120 ms
56,212 KB
testcase_15 AC 124 ms
56,420 KB
testcase_16 AC 124 ms
55,856 KB
testcase_17 AC 121 ms
55,856 KB
testcase_18 AC 122 ms
55,820 KB
testcase_19 AC 122 ms
55,856 KB
testcase_20 AC 121 ms
55,784 KB
testcase_21 AC 122 ms
56,052 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;
import java.util.stream.IntStream;

public class No0480 {
	public static void main(String[] args) {
		int N = new Scanner(System.in).nextInt();

		System.out.println(IntStream.rangeClosed(1, N).sum());
	}
}
0