結果
問題 |
No.143 豆
|
ユーザー |
![]() |
提出日時 | 2016-06-14 22:20:57 |
言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 305 bytes |
コンパイル時間 | 516 ms |
コンパイル使用メモリ | 63,616 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-09 13:48:32 |
合計ジャッジ時間 | 1,218 ms |
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 14 WA * 3 |
ソースコード
#include <iostream> #define FOR(i,a,b) for(i = a; i < b; i++) #define REP(i,n) FOR(i,0,n) int main() { int i, k, n, f; int ans = 0; std::cin >> k >> n >> f; int a[f]; REP(i, f) std::cin >> a[i]; REP(i, f) ans += a[i]; ans = k * n - ans; std::cout << ans << std::endl; return 0; }