結果

問題 No.143 豆
ユーザー sasakkisasakki
提出日時 2016-04-14 15:35:39
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 370 bytes
コンパイル時間 2,239 ms
コンパイル使用メモリ 74,820 KB
実行使用メモリ 54,792 KB
最終ジャッジ日時 2024-04-15 01:24:51
合計ジャッジ時間 4,863 ms
ジャッジサーバーID
(参考情報)
judge2 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 119 ms
54,164 KB
testcase_01 AC 125 ms
54,256 KB
testcase_02 AC 122 ms
54,156 KB
testcase_03 AC 122 ms
53,844 KB
testcase_04 AC 124 ms
54,052 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 122 ms
53,872 KB
testcase_09 AC 123 ms
54,216 KB
testcase_10 AC 126 ms
54,176 KB
testcase_11 AC 123 ms
54,008 KB
testcase_12 AC 124 ms
54,360 KB
testcase_13 AC 126 ms
53,988 KB
testcase_14 AC 126 ms
53,864 KB
testcase_15 AC 126 ms
54,380 KB
testcase_16 AC 120 ms
54,072 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.Scanner;

class Main{
	public static void main(String args[]){
		Scanner sc = new Scanner(System.in);

		int K = Integer.parseInt(sc.next());
		int N = Integer.parseInt(sc.next());
		int F = Integer.parseInt(sc.next());

		int sum = 0;

		for(int i = 0; i < F; i++){
			sum += Integer.parseInt(sc.next());
		}

		System.out.println( K * N - sum );
	}
}
0