結果
| 問題 | 
                            No.143 豆
                             | 
                    
| コンテスト | |
| ユーザー | 
                             | 
                    
| 提出日時 | 2018-10-12 17:20:20 | 
| 言語 | C++14  (gcc 13.3.0 + boost 1.87.0)  | 
                    
| 結果 | 
                             
                                WA
                                 
                             
                            
                         | 
                    
| 実行時間 | - | 
| コード長 | 255 bytes | 
| コンパイル時間 | 674 ms | 
| コンパイル使用メモリ | 65,280 KB | 
| 実行使用メモリ | 5,248 KB | 
| 最終ジャッジ日時 | 2024-10-12 17:49:55 | 
| 合計ジャッジ時間 | 1,140 ms | 
| 
                            ジャッジサーバーID (参考情報)  | 
                        judge5 / judge | 
(要ログイン)
| ファイルパターン | 結果 | 
|---|---|
| other | AC * 14 WA * 3 | 
ソースコード
#include <iostream>
#include <string>
#include <algorithm>
#include <cctype>
using namespace std;
int main(){
    int K, N, F;
    cin >> K >> N >> F;
    K*= N;
    for(int i=0; i<F; i++){
        cin >> N;
        K -= N;
    }
    cout << K << endl;
}