結果

問題 No.480 合計
ユーザー YOSHIYOSHI
提出日時 2021-03-16 22:42:46
言語 Java21
(openjdk 21)
結果
AC  
実行時間 52 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 3,378 ms
コンパイル使用メモリ 74,240 KB
実行使用メモリ 37,208 KB
最終ジャッジ日時 2024-04-26 05:40:55
合計ジャッジ時間 5,125 ms
ジャッジサーバーID
(参考情報)
judge5 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 50 ms
37,172 KB
testcase_01 AC 52 ms
36,844 KB
testcase_02 AC 52 ms
37,024 KB
testcase_03 AC 50 ms
37,120 KB
testcase_04 AC 50 ms
37,196 KB
testcase_05 AC 52 ms
37,088 KB
testcase_06 AC 51 ms
37,208 KB
testcase_07 AC 51 ms
37,172 KB
testcase_08 AC 52 ms
37,112 KB
testcase_09 AC 51 ms
37,148 KB
testcase_10 AC 50 ms
36,980 KB
testcase_11 AC 52 ms
37,076 KB
testcase_12 AC 50 ms
36,952 KB
testcase_13 AC 50 ms
36,908 KB
testcase_14 AC 49 ms
37,028 KB
testcase_15 AC 51 ms
36,956 KB
testcase_16 AC 50 ms
37,008 KB
testcase_17 AC 50 ms
37,208 KB
testcase_18 AC 49 ms
37,092 KB
testcase_19 AC 50 ms
36,956 KB
testcase_20 AC 51 ms
37,148 KB
testcase_21 AC 50 ms
36,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000480_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		int n = Integer.parseInt(br.readLine());
		System.out.println((n * (n + 1)) / 2);
	}
}
0