結果

問題 No.480 合計
ユーザー ppp4757ppp4757
提出日時 2017-08-17 22:56:32
言語 Java21
(openjdk 21)
結果
AC  
実行時間 121 ms / 2,000 ms
コード長 231 bytes
コンパイル時間 3,507 ms
コンパイル使用メモリ 71,572 KB
実行使用メモリ 56,232 KB
最終ジャッジ日時 2023-08-21 01:57:37
合計ジャッジ時間 6,993 ms
ジャッジサーバーID
(参考情報)
judge12 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
55,920 KB
testcase_01 AC 121 ms
55,708 KB
testcase_02 AC 119 ms
55,956 KB
testcase_03 AC 118 ms
56,136 KB
testcase_04 AC 117 ms
55,760 KB
testcase_05 AC 119 ms
56,140 KB
testcase_06 AC 120 ms
55,852 KB
testcase_07 AC 117 ms
55,996 KB
testcase_08 AC 117 ms
56,232 KB
testcase_09 AC 116 ms
55,916 KB
testcase_10 AC 117 ms
55,476 KB
testcase_11 AC 117 ms
55,908 KB
testcase_12 AC 117 ms
56,056 KB
testcase_13 AC 121 ms
56,184 KB
testcase_14 AC 119 ms
55,976 KB
testcase_15 AC 120 ms
56,112 KB
testcase_16 AC 117 ms
55,860 KB
testcase_17 AC 118 ms
55,864 KB
testcase_18 AC 118 ms
55,764 KB
testcase_19 AC 117 ms
55,720 KB
testcase_20 AC 118 ms
55,680 KB
testcase_21 AC 121 ms
55,684 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

public class Main{
	public static void main(String[] args){
		int x = 0;
		int n = new java.util.Scanner(System.in).nextInt();
		if(1<=n || n<=100){ 
			for(int i = 0;i <= n;i++){
				x += i;
			}
		}
		System.out.println(x);
	}
}
0