結果

問題 No.480 合計
ユーザー tanzakutanzaku
提出日時 2017-02-10 22:46:33
言語 Java21
(openjdk 21)
結果
AC  
実行時間 123 ms / 2,000 ms
コード長 516 bytes
コンパイル時間 3,956 ms
コンパイル使用メモリ 72,224 KB
実行使用メモリ 56,492 KB
最終ジャッジ日時 2023-08-21 01:31:22
合計ジャッジ時間 7,183 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 118 ms
55,964 KB
testcase_01 AC 122 ms
55,444 KB
testcase_02 AC 121 ms
55,720 KB
testcase_03 AC 119 ms
56,248 KB
testcase_04 AC 118 ms
56,048 KB
testcase_05 AC 121 ms
56,188 KB
testcase_06 AC 122 ms
55,840 KB
testcase_07 AC 123 ms
55,540 KB
testcase_08 AC 118 ms
55,816 KB
testcase_09 AC 118 ms
55,352 KB
testcase_10 AC 118 ms
56,164 KB
testcase_11 AC 118 ms
56,016 KB
testcase_12 AC 122 ms
56,132 KB
testcase_13 AC 121 ms
56,492 KB
testcase_14 AC 123 ms
55,584 KB
testcase_15 AC 120 ms
55,916 KB
testcase_16 AC 120 ms
55,644 KB
testcase_17 AC 120 ms
56,360 KB
testcase_18 AC 121 ms
55,696 KB
testcase_19 AC 122 ms
55,984 KB
testcase_20 AC 122 ms
56,236 KB
testcase_21 AC 118 ms
56,280 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.*;

public class _480 {
	public static void main(String[] args) throws IOException {
		new _480().solve();
	}

	void solve() throws IOException {
		try (final Scanner in = new Scanner(System.in)) {
			int n = in.nextInt();
			System.out.println(n * (n + 1) / 2);
		}
	}
	
	// for debug
	static void dump(Object... o) {
		System.err.println(Arrays.deepToString(o));
	}
}
0