結果

問題 No.369 足し間違い
ユーザー YOSHIYOSHI
提出日時 2021-03-12 22:13:49
言語 Java21
(openjdk 21)
結果
AC  
実行時間 97 ms / 2,000 ms
コード長 512 bytes
コンパイル時間 3,261 ms
コンパイル使用メモリ 74,428 KB
実行使用メモリ 39,316 KB
最終ジャッジ日時 2024-04-22 13:15:32
合計ジャッジ時間 4,214 ms
ジャッジサーバーID
(参考情報)
judge1 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 52 ms
37,068 KB
testcase_01 AC 52 ms
36,956 KB
testcase_02 AC 50 ms
36,784 KB
testcase_03 AC 50 ms
36,760 KB
testcase_04 AC 96 ms
39,244 KB
testcase_05 AC 56 ms
36,768 KB
testcase_06 AC 85 ms
39,316 KB
testcase_07 AC 97 ms
39,200 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;

public class No00000369_Main {
	static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
	public static void main(String[] args) throws IOException {
		int n = Integer.parseInt(br.readLine());
		String[] strArr = br.readLine().split(" ");
		int sum = 0;
		for(int i = 0; i < n; i++) {
			sum += Integer.parseInt(strArr[i]);
		}
		System.out.println(	sum - Integer.parseInt(br.readLine()));
	}
}
0