結果

問題 No.480 合計
ユーザー ShinYonamineShinYonamine
提出日時 2019-09-27 17:56:59
言語 Java21
(openjdk 21)
結果
AC  
実行時間 133 ms / 2,000 ms
コード長 257 bytes
コンパイル時間 2,586 ms
コンパイル使用メモリ 73,696 KB
実行使用メモリ 57,680 KB
最終ジャッジ日時 2023-10-25 01:09:27
合計ジャッジ時間 6,145 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 131 ms
57,460 KB
testcase_01 AC 131 ms
57,624 KB
testcase_02 AC 131 ms
57,580 KB
testcase_03 AC 131 ms
57,464 KB
testcase_04 AC 130 ms
55,332 KB
testcase_05 AC 130 ms
57,432 KB
testcase_06 AC 132 ms
57,476 KB
testcase_07 AC 129 ms
57,420 KB
testcase_08 AC 131 ms
57,480 KB
testcase_09 AC 129 ms
57,380 KB
testcase_10 AC 129 ms
55,244 KB
testcase_11 AC 130 ms
57,672 KB
testcase_12 AC 129 ms
57,424 KB
testcase_13 AC 130 ms
57,552 KB
testcase_14 AC 132 ms
57,680 KB
testcase_15 AC 132 ms
57,644 KB
testcase_16 AC 132 ms
57,640 KB
testcase_17 AC 131 ms
57,552 KB
testcase_18 AC 133 ms
57,376 KB
testcase_19 AC 130 ms
55,592 KB
testcase_20 AC 129 ms
57,612 KB
testcase_21 AC 131 ms
57,596 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