結果

問題 No.480 合計
ユーザー jimanojimano
提出日時 2018-01-08 13:13:20
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 251 bytes
コンパイル時間 8,281 ms
コンパイル使用メモリ 71,752 KB
実行使用メモリ 56,480 KB
最終ジャッジ日時 2023-08-25 00:25:52
合計ジャッジ時間 7,524 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
56,004 KB
testcase_01 AC 123 ms
55,792 KB
testcase_02 AC 121 ms
55,792 KB
testcase_03 AC 122 ms
56,184 KB
testcase_04 AC 122 ms
56,156 KB
testcase_05 AC 119 ms
55,992 KB
testcase_06 AC 120 ms
55,796 KB
testcase_07 AC 121 ms
55,972 KB
testcase_08 AC 121 ms
56,220 KB
testcase_09 AC 122 ms
56,152 KB
testcase_10 AC 122 ms
54,128 KB
testcase_11 AC 120 ms
56,072 KB
testcase_12 AC 120 ms
56,032 KB
testcase_13 AC 122 ms
56,480 KB
testcase_14 AC 120 ms
56,196 KB
testcase_15 AC 121 ms
55,884 KB
testcase_16 AC 124 ms
56,376 KB
testcase_17 AC 124 ms
56,032 KB
testcase_18 AC 121 ms
56,012 KB
testcase_19 AC 122 ms
56,008 KB
testcase_20 AC 122 ms
56,292 KB
testcase_21 AC 122 ms
55,796 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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

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

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