結果

問題 No.480 合計
ユーザー nishimitnishimit
提出日時 2018-06-30 15:04:14
言語 Java21
(openjdk 21)
結果
AC  
実行時間 130 ms / 2,000 ms
コード長 237 bytes
コンパイル時間 4,391 ms
コンパイル使用メモリ 71,000 KB
実行使用メモリ 56,068 KB
最終ジャッジ日時 2023-09-13 16:17:26
合計ジャッジ時間 7,308 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 128 ms
55,532 KB
testcase_01 AC 128 ms
55,784 KB
testcase_02 AC 130 ms
55,852 KB
testcase_03 AC 127 ms
55,760 KB
testcase_04 AC 128 ms
55,416 KB
testcase_05 AC 129 ms
55,408 KB
testcase_06 AC 128 ms
55,336 KB
testcase_07 AC 128 ms
55,616 KB
testcase_08 AC 128 ms
55,528 KB
testcase_09 AC 127 ms
53,772 KB
testcase_10 AC 125 ms
55,576 KB
testcase_11 AC 129 ms
55,960 KB
testcase_12 AC 130 ms
55,568 KB
testcase_13 AC 128 ms
55,704 KB
testcase_14 AC 130 ms
55,972 KB
testcase_15 AC 129 ms
55,636 KB
testcase_16 AC 128 ms
55,276 KB
testcase_17 AC 128 ms
55,368 KB
testcase_18 AC 127 ms
55,676 KB
testcase_19 AC 127 ms
55,692 KB
testcase_20 AC 128 ms
55,784 KB
testcase_21 AC 127 ms
56,068 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class SummsN{
        public static void main(String args[]){
        Scanner sc = new Scanner(System.in);
        int n = sc.nextInt();
        n = (n+1)*n/2;
        System.out.println(n);    
    }
}
0