結果

問題 No.480 合計
ユーザー kazapyon27kazapyon27
提出日時 2017-04-29 18:45:30
言語 Java21
(openjdk 21)
結果
AC  
実行時間 124 ms / 2,000 ms
コード長 290 bytes
コンパイル時間 3,228 ms
コンパイル使用メモリ 71,260 KB
実行使用メモリ 56,308 KB
最終ジャッジ日時 2023-08-21 01:43:39
合計ジャッジ時間 6,694 ms
ジャッジサーバーID
(参考情報)
judge14 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 122 ms
56,088 KB
testcase_01 AC 122 ms
56,160 KB
testcase_02 AC 119 ms
56,116 KB
testcase_03 AC 119 ms
56,308 KB
testcase_04 AC 121 ms
55,748 KB
testcase_05 AC 124 ms
55,620 KB
testcase_06 AC 122 ms
55,792 KB
testcase_07 AC 123 ms
55,892 KB
testcase_08 AC 123 ms
55,852 KB
testcase_09 AC 121 ms
56,044 KB
testcase_10 AC 121 ms
55,932 KB
testcase_11 AC 122 ms
56,036 KB
testcase_12 AC 122 ms
55,516 KB
testcase_13 AC 120 ms
55,868 KB
testcase_14 AC 122 ms
56,208 KB
testcase_15 AC 122 ms
56,092 KB
testcase_16 AC 123 ms
55,880 KB
testcase_17 AC 119 ms
55,900 KB
testcase_18 AC 118 ms
56,180 KB
testcase_19 AC 119 ms
56,308 KB
testcase_20 AC 120 ms
56,220 KB
testcase_21 AC 120 ms
55,704 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class Sum {
	public static void main(String[] args) {
		try(Scanner input =new Scanner(System.in)){
			byte EndNumber=input.nextByte();
			int Goukei=EndNumber*(1+EndNumber)/2;
			System.out.println(Goukei);
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
0