結果

問題 No.480 合計
ユーザー 大澤秀生大澤秀生
提出日時 2021-09-28 01:35:38
言語 Java21
(openjdk 21)
結果
AC  
実行時間 43 ms / 2,000 ms
コード長 356 bytes
コンパイル時間 4,959 ms
コンパイル使用メモリ 72,092 KB
実行使用メモリ 49,316 KB
最終ジャッジ日時 2023-09-21 04:38:05
合計ジャッジ時間 6,846 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
47,308 KB
testcase_01 AC 41 ms
49,116 KB
testcase_02 AC 42 ms
48,864 KB
testcase_03 AC 42 ms
48,956 KB
testcase_04 AC 43 ms
49,204 KB
testcase_05 AC 43 ms
48,976 KB
testcase_06 AC 42 ms
49,000 KB
testcase_07 AC 42 ms
49,104 KB
testcase_08 AC 43 ms
49,316 KB
testcase_09 AC 43 ms
49,316 KB
testcase_10 AC 42 ms
49,172 KB
testcase_11 AC 42 ms
49,008 KB
testcase_12 AC 42 ms
49,112 KB
testcase_13 AC 42 ms
49,208 KB
testcase_14 AC 41 ms
48,856 KB
testcase_15 AC 42 ms
49,052 KB
testcase_16 AC 42 ms
49,200 KB
testcase_17 AC 43 ms
49,060 KB
testcase_18 AC 42 ms
49,176 KB
testcase_19 AC 41 ms
48,992 KB
testcase_20 AC 42 ms
49,148 KB
testcase_21 AC 41 ms
49,300 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