結果

問題 No.9008 空白区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー springspring
提出日時 2019-06-12 11:25:33
言語 Java19
(openjdk 21)
結果
AC  
実行時間 873 ms / 2,000 ms
コード長 313 bytes
コンパイル時間 2,746 ms
コンパイル使用メモリ 71,792 KB
実行使用メモリ 65,748 KB
最終ジャッジ日時 2023-07-30 22:37:31
合計ジャッジ時間 12,623 ms
ジャッジサーバーID
(参考情報)
judge15 / judge13
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 120 ms
55,728 KB
testcase_01 AC 123 ms
55,484 KB
testcase_02 AC 123 ms
55,784 KB
testcase_03 AC 120 ms
55,576 KB
testcase_04 AC 125 ms
55,852 KB
testcase_05 AC 135 ms
55,620 KB
testcase_06 AC 189 ms
55,888 KB
testcase_07 AC 284 ms
59,904 KB
testcase_08 AC 464 ms
60,824 KB
testcase_09 AC 527 ms
60,228 KB
testcase_10 AC 793 ms
65,748 KB
testcase_11 AC 873 ms
64,364 KB
testcase_12 AC 800 ms
65,420 KB
testcase_13 AC 831 ms
64,700 KB
testcase_14 AC 806 ms
64,964 KB
testcase_15 AC 837 ms
65,012 KB
testcase_16 AC 832 ms
64,592 KB
testcase_17 AC 123 ms
55,960 KB
testcase_18 AC 126 ms
55,720 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

public class Main {
	public static void main(String[] args) {
		Scanner sc = new Scanner(System.in);
		int count = sc.nextInt();
		long result = 0;
		for(int i=0;i<count;i++){
			long input = sc.nextLong();
			result += input;
		}
		System.out.println(result);
	}//mainmethod

} //class
0