結果

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

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
56,032 KB
testcase_01 AC 119 ms
56,056 KB
testcase_02 AC 119 ms
56,056 KB
testcase_03 AC 118 ms
56,284 KB
testcase_04 AC 119 ms
56,100 KB
testcase_05 AC 118 ms
56,028 KB
testcase_06 AC 117 ms
56,144 KB
testcase_07 AC 119 ms
56,036 KB
testcase_08 AC 117 ms
55,800 KB
testcase_09 AC 119 ms
55,712 KB
testcase_10 AC 119 ms
54,120 KB
testcase_11 AC 120 ms
56,152 KB
testcase_12 AC 119 ms
56,000 KB
testcase_13 AC 118 ms
55,924 KB
testcase_14 AC 118 ms
55,872 KB
testcase_15 AC 121 ms
55,468 KB
testcase_16 AC 119 ms
55,792 KB
testcase_17 AC 120 ms
55,768 KB
testcase_18 AC 125 ms
55,988 KB
testcase_19 AC 125 ms
56,048 KB
testcase_20 AC 124 ms
56,132 KB
testcase_21 AC 123 ms
55,748 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(n * (n + 1) / 2);
	}
}
0