結果

問題 No.480 合計
ユーザー fkwnw3_1243fkwnw3_1243
提出日時 2017-05-04 11:04:44
言語 Java21
(openjdk 21)
結果
AC  
実行時間 44 ms / 2,000 ms
コード長 391 bytes
コンパイル時間 1,781 ms
コンパイル使用メモリ 71,524 KB
実行使用メモリ 49,720 KB
最終ジャッジ日時 2023-08-21 01:43:54
合計ジャッジ時間 3,729 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
49,288 KB
testcase_01 AC 42 ms
49,264 KB
testcase_02 AC 42 ms
49,068 KB
testcase_03 AC 44 ms
49,024 KB
testcase_04 AC 42 ms
49,436 KB
testcase_05 AC 41 ms
49,104 KB
testcase_06 AC 40 ms
49,088 KB
testcase_07 AC 41 ms
49,220 KB
testcase_08 AC 40 ms
49,284 KB
testcase_09 AC 40 ms
49,472 KB
testcase_10 AC 41 ms
49,128 KB
testcase_11 AC 40 ms
47,460 KB
testcase_12 AC 41 ms
49,356 KB
testcase_13 AC 40 ms
49,720 KB
testcase_14 AC 40 ms
49,160 KB
testcase_15 AC 41 ms
49,128 KB
testcase_16 AC 40 ms
49,284 KB
testcase_17 AC 40 ms
49,596 KB
testcase_18 AC 41 ms
49,220 KB
testcase_19 AC 41 ms
49,192 KB
testcase_20 AC 44 ms
49,432 KB
testcase_21 AC 42 ms
49,024 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import static java.lang.System.in;

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