結果

問題 No.480 合計
ユーザー Mcpu3Mcpu3
提出日時 2018-04-15 22:29:38
言語 Java19
(openjdk 21)
結果
AC  
実行時間 137 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 2,407 ms
コンパイル使用メモリ 71,388 KB
実行使用メモリ 55,896 KB
最終ジャッジ日時 2023-09-09 07:00:37
合計ジャッジ時間 6,760 ms
ジャッジサーバーID
(参考情報)
judge11 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 126 ms
55,540 KB
testcase_01 AC 123 ms
55,524 KB
testcase_02 AC 129 ms
55,772 KB
testcase_03 AC 129 ms
55,896 KB
testcase_04 AC 128 ms
55,820 KB
testcase_05 AC 128 ms
55,724 KB
testcase_06 AC 128 ms
55,600 KB
testcase_07 AC 128 ms
55,700 KB
testcase_08 AC 127 ms
55,700 KB
testcase_09 AC 126 ms
55,612 KB
testcase_10 AC 132 ms
55,460 KB
testcase_11 AC 126 ms
55,472 KB
testcase_12 AC 128 ms
55,668 KB
testcase_13 AC 127 ms
55,516 KB
testcase_14 AC 128 ms
55,796 KB
testcase_15 AC 128 ms
55,808 KB
testcase_16 AC 137 ms
55,500 KB
testcase_17 AC 129 ms
55,460 KB
testcase_18 AC 126 ms
55,788 KB
testcase_19 AC 124 ms
55,768 KB
testcase_20 AC 128 ms
55,736 KB
testcase_21 AC 127 ms
55,668 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class no480{
	public static void main(String[] args) {
		Scanner stdIn=new Scanner(System.in);
		int n=stdIn.nextInt();
		int sum=0;
		for(int i=1;i<=n;i++) sum+=i;
		System.out.println(sum);
	}
}
0