結果

問題 No.480 合計
ユーザー d07ki3bq1uzd07ki3bq1uz
提出日時 2019-09-27 21:45:50
言語 Java21
(openjdk 21)
結果
AC  
実行時間 131 ms / 2,000 ms
コード長 258 bytes
コンパイル時間 1,950 ms
コンパイル使用メモリ 73,768 KB
実行使用メモリ 57,568 KB
最終ジャッジ日時 2023-10-25 03:14:51
合計ジャッジ時間 5,679 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
57,148 KB
testcase_01 AC 129 ms
57,508 KB
testcase_02 AC 129 ms
57,428 KB
testcase_03 AC 126 ms
57,272 KB
testcase_04 AC 129 ms
57,508 KB
testcase_05 AC 130 ms
55,476 KB
testcase_06 AC 128 ms
57,548 KB
testcase_07 AC 130 ms
57,400 KB
testcase_08 AC 131 ms
57,436 KB
testcase_09 AC 130 ms
57,568 KB
testcase_10 AC 126 ms
57,392 KB
testcase_11 AC 124 ms
57,496 KB
testcase_12 AC 126 ms
57,472 KB
testcase_13 AC 128 ms
57,352 KB
testcase_14 AC 127 ms
55,424 KB
testcase_15 AC 129 ms
57,492 KB
testcase_16 AC 128 ms
57,520 KB
testcase_17 AC 128 ms
57,520 KB
testcase_18 AC 125 ms
57,232 KB
testcase_19 AC 128 ms
57,304 KB
testcase_20 AC 126 ms
57,480 KB
testcase_21 AC 125 ms
57,412 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

class Main {
    public static void main (String[] args) {
        int N = new java.util.Scanner(System.in).nextInt();
        int ans = 0;
        
        for (int i = 0 ; i <= N ; i++){
            ans = ans + i ;
        }System.out.println(ans);
    }
}
0