結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー kazapyon27kazapyon27
提出日時 2017-05-02 01:28:19
言語 Java21
(openjdk 21)
結果
AC  
実行時間 840 ms / 3,000 ms
コード長 324 bytes
コンパイル時間 5,164 ms
コンパイル使用メモリ 72,424 KB
実行使用メモリ 65,856 KB
最終ジャッジ日時 2023-08-26 17:05:12
合計ジャッジ時間 14,559 ms
ジャッジサーバーID
(参考情報)
judge11 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 117 ms
55,912 KB
testcase_01 AC 120 ms
56,024 KB
testcase_02 AC 121 ms
55,736 KB
testcase_03 AC 120 ms
55,676 KB
testcase_04 AC 121 ms
55,936 KB
testcase_05 AC 135 ms
55,740 KB
testcase_06 AC 182 ms
56,440 KB
testcase_07 AC 276 ms
59,896 KB
testcase_08 AC 454 ms
60,520 KB
testcase_09 AC 577 ms
60,900 KB
testcase_10 AC 821 ms
63,912 KB
testcase_11 AC 775 ms
64,492 KB
testcase_12 AC 823 ms
64,244 KB
testcase_13 AC 831 ms
64,096 KB
testcase_14 AC 840 ms
64,684 KB
testcase_15 AC 837 ms
64,520 KB
testcase_16 AC 836 ms
65,856 KB
testcase_17 AC 119 ms
56,052 KB
testcase_18 AC 119 ms
55,964 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;
public class No9009 {
	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