結果

問題 No.9009 改行区切りで与えられる数値データの合計値を求める(テスト用)
ユーザー springspring
提出日時 2019-06-12 11:27:11
言語 Java21
(openjdk 21)
結果
AC  
実行時間 934 ms / 3,000 ms
コード長 308 bytes
コンパイル時間 1,844 ms
コンパイル使用メモリ 74,432 KB
実行使用メモリ 58,016 KB
最終ジャッジ日時 2024-04-17 23:53:28
合計ジャッジ時間 11,208 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 112 ms
41,388 KB
testcase_01 AC 106 ms
41,196 KB
testcase_02 AC 117 ms
41,572 KB
testcase_03 AC 107 ms
41,584 KB
testcase_04 AC 117 ms
41,284 KB
testcase_05 AC 130 ms
41,616 KB
testcase_06 AC 176 ms
42,548 KB
testcase_07 AC 262 ms
47,308 KB
testcase_08 AC 488 ms
48,372 KB
testcase_09 AC 489 ms
48,000 KB
testcase_10 AC 873 ms
57,740 KB
testcase_11 AC 890 ms
58,016 KB
testcase_12 AC 868 ms
57,604 KB
testcase_13 AC 934 ms
57,876 KB
testcase_14 AC 786 ms
57,852 KB
testcase_15 AC 867 ms
57,976 KB
testcase_16 AC 885 ms
58,004 KB
testcase_17 AC 121 ms
41,404 KB
testcase_18 AC 122 ms
41,284 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

} //
0