結果

問題 No.3100 始業式
ユーザー CuriousFairy315CuriousFairy315
提出日時 2023-03-31 21:46:41
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 498 bytes
コンパイル時間 3,766 ms
コンパイル使用メモリ 74,288 KB
実行使用メモリ 62,008 KB
最終ジャッジ日時 2023-10-24 07:38:43
合計ジャッジ時間 4,041 ms
ジャッジサーバーID
(参考情報)
judge13 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
権限があれば一括ダウンロードができます

ソースコード

diff #


import static java.lang.System.err;

public class Main {
	public static void main(String[] args) {
		java.io.PrintWriter out = new java.io.PrintWriter(System.out);
		new Main(out);
		out.flush();
		err.flush();
	}

	public Main(java.io.PrintWriter out) {
		try (java.util.Scanner sc = new java.util.Scanner(System.in)) {
			int T = sc.nextInt();
			while(T --> 0) {
				int N = sc.nextInt();
				int sum = 0;
				for (int i = 0;i < N;++ i) sum += sc.nextInt();
				out.println(sum);
			}
		}
	}
}
0