結果
問題 |
No.143 豆
|
ユーザー |
|
提出日時 | 2020-08-30 17:53:35 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 278 bytes |
コンパイル時間 | 1,583 ms |
コンパイル使用メモリ | 167,068 KB |
実行使用メモリ | 6,820 KB |
最終ジャッジ日時 | 2024-11-15 14:41:21 |
合計ジャッジ時間 | 2,159 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 13 WA * 4 |
ソースコード
#include <bits/stdc++.h> #define rep(i, ss, ee) for (int i = ss; i < ee; ++i) using namespace std; int main() { int K, N, F, x; int ans; cin >> K >> N >> F; ans = K * N; rep(i, 0, F) { cin >> x; ans -= x; } cout << (ans ? ans : -1) << endl; getchar(); }