結果

問題 No.143 豆
ユーザー fukuseifukusei
提出日時 2018-03-08 16:42:11
言語 Java21
(openjdk 21)
結果
WA  
実行時間 -
コード長 383 bytes
コンパイル時間 2,389 ms
コンパイル使用メモリ 74,172 KB
実行使用メモリ 54,516 KB
最終ジャッジ日時 2024-04-15 12:09:51
合計ジャッジ時間 6,196 ms
ジャッジサーバーID
(参考情報)
judge4 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 155 ms
53,940 KB
testcase_01 AC 160 ms
54,208 KB
testcase_02 AC 165 ms
54,312 KB
testcase_03 AC 169 ms
53,972 KB
testcase_04 AC 169 ms
54,312 KB
testcase_05 WA -
testcase_06 WA -
testcase_07 WA -
testcase_08 AC 163 ms
54,280 KB
testcase_09 AC 162 ms
54,236 KB
testcase_10 AC 163 ms
54,308 KB
testcase_11 AC 156 ms
54,024 KB
testcase_12 AC 163 ms
54,044 KB
testcase_13 AC 165 ms
54,180 KB
testcase_14 AC 164 ms
54,276 KB
testcase_15 AC 172 ms
53,684 KB
testcase_16 AC 155 ms
54,020 KB
権限があれば一括ダウンロードができます

ソースコード

diff #

import java.util.*;


public class Main {
    public static void main(String[] args) {
        Scanner sc = new Scanner(System.in);
        int K = sc.nextInt();
        int N = sc.nextInt();
        int F = sc.nextInt();
        int sum = 0;
        
        for(int i=0; i<F; i++){
            sum += sc.nextInt();
        }
        
        System.out.println( K*N - sum);
    }
}
0