結果

問題 No.480 合計
ユーザー HEGO55HEGO55
提出日時 2017-05-19 01:59:42
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 233 bytes
コンパイル時間 1,896 ms
コンパイル使用メモリ 71,680 KB
実行使用メモリ 56,384 KB
最終ジャッジ日時 2023-08-21 01:44:44
合計ジャッジ時間 5,618 ms
ジャッジサーバーID
(参考情報)
judge12 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,620 KB
testcase_01 AC 120 ms
55,376 KB
testcase_02 AC 122 ms
56,384 KB
testcase_03 AC 119 ms
55,640 KB
testcase_04 AC 121 ms
55,484 KB
testcase_05 AC 121 ms
55,544 KB
testcase_06 AC 122 ms
55,936 KB
testcase_07 AC 121 ms
55,616 KB
testcase_08 AC 121 ms
55,596 KB
testcase_09 AC 118 ms
55,744 KB
testcase_10 AC 119 ms
53,680 KB
testcase_11 AC 118 ms
54,028 KB
testcase_12 AC 119 ms
55,868 KB
testcase_13 AC 119 ms
56,260 KB
testcase_14 AC 119 ms
55,492 KB
testcase_15 AC 119 ms
55,876 KB
testcase_16 AC 119 ms
56,348 KB
testcase_17 AC 118 ms
55,912 KB
testcase_18 AC 124 ms
55,700 KB
testcase_19 AC 122 ms
55,748 KB
testcase_20 AC 121 ms
55,548 KB
testcase_21 AC 120 ms
55,716 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

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