結果

問題 No.480 合計
ユーザー kusa_no_nekusa_no_ne
提出日時 2017-11-15 22:58:15
言語 Java19
(openjdk 21)
結果
AC  
実行時間 125 ms / 2,000 ms
コード長 299 bytes
コンパイル時間 2,568 ms
コンパイル使用メモリ 72,056 KB
実行使用メモリ 56,192 KB
最終ジャッジ日時 2023-08-21 02:08:20
合計ジャッジ時間 6,362 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 121 ms
55,500 KB
testcase_01 AC 122 ms
56,020 KB
testcase_02 AC 121 ms
56,152 KB
testcase_03 AC 121 ms
56,016 KB
testcase_04 AC 123 ms
56,180 KB
testcase_05 AC 123 ms
55,904 KB
testcase_06 AC 122 ms
56,112 KB
testcase_07 AC 124 ms
55,696 KB
testcase_08 AC 125 ms
55,800 KB
testcase_09 AC 125 ms
55,776 KB
testcase_10 AC 124 ms
56,004 KB
testcase_11 AC 121 ms
55,648 KB
testcase_12 AC 122 ms
55,508 KB
testcase_13 AC 122 ms
55,832 KB
testcase_14 AC 122 ms
55,900 KB
testcase_15 AC 123 ms
55,648 KB
testcase_16 AC 123 ms
55,668 KB
testcase_17 AC 123 ms
55,672 KB
testcase_18 AC 121 ms
56,192 KB
testcase_19 AC 123 ms
55,864 KB
testcase_20 AC 122 ms
55,756 KB
testcase_21 AC 123 ms
56,056 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Wandbox
{
    public static void main(String[] args)
    {
        Scanner sc = new Scanner(System.in);

        int a = sc.nextInt();
        int b = 0;
        
        for(int i=0;i<a;i++) {
             b += i+1;
        }

        System.out.println(b);
    }
}
0