結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー kazapyon27kazapyon27
提出日時 2017-04-29 21:54:41
言語 Java21
(openjdk 21)
結果
AC  
実行時間 857 ms / 2,000 ms
コード長 324 bytes
コンパイル時間 3,258 ms
コンパイル使用メモリ 73,332 KB
実行使用メモリ 65,836 KB
最終ジャッジ日時 2023-10-11 20:27:55
合計ジャッジ時間 13,479 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 125 ms
56,268 KB
testcase_01 AC 124 ms
55,740 KB
testcase_02 AC 124 ms
55,964 KB
testcase_03 AC 123 ms
55,744 KB
testcase_04 AC 126 ms
55,800 KB
testcase_05 AC 136 ms
55,984 KB
testcase_06 AC 185 ms
56,420 KB
testcase_07 AC 275 ms
59,684 KB
testcase_08 AC 456 ms
60,828 KB
testcase_09 AC 531 ms
60,424 KB
testcase_10 AC 857 ms
64,664 KB
testcase_11 AC 820 ms
65,416 KB
testcase_12 AC 849 ms
65,532 KB
testcase_13 AC 843 ms
64,580 KB
testcase_14 AC 835 ms
65,336 KB
testcase_15 AC 842 ms
65,136 KB
testcase_16 AC 840 ms
65,836 KB
testcase_17 AC 123 ms
55,756 KB
testcase_18 AC 125 ms
56,292 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class No9008 {
	public static void main(String[] args) {
		int N;long a,Goukei=0;
		try(Scanner input =new Scanner(System.in)){
			N=input.nextInt();
			for(int i=1;i<=N;i++){
				Goukei+=input.nextLong();
			}
			System.out.println(Goukei);
		}catch(Exception e){
			e.printStackTrace();
		}
	}
}
0