結果

問題 No.369 足し間違い
ユーザー fal_rndfal_rnd
提出日時 2021-04-01 20:01:27
言語 Java21
(openjdk 21)
結果
AC  
実行時間 250 ms / 2,000 ms
コード長 242 bytes
コンパイル時間 2,946 ms
コンパイル使用メモリ 71,768 KB
実行使用メモリ 60,168 KB
最終ジャッジ日時 2023-08-22 22:29:14
合計ジャッジ時間 5,427 ms
ジャッジサーバーID
(参考情報)
judge14 / judge13
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 129 ms
55,772 KB
testcase_01 AC 127 ms
55,756 KB
testcase_02 AC 127 ms
55,728 KB
testcase_03 AC 134 ms
55,440 KB
testcase_04 AC 242 ms
59,464 KB
testcase_05 AC 197 ms
58,760 KB
testcase_06 AC 246 ms
58,308 KB
testcase_07 AC 250 ms
60,168 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;

class Main{
	static final Scanner s=new Scanner(System.in);

	public static void main(String[] $){
		int n=s.nextInt();
		int r=0;
		for(int i=0;i<n;++i)
			r+=s.nextInt();
		r-=s.nextInt();
		System.out.println(r);
	}
}
0