結果
| 問題 | No.143 豆 |
| コンテスト | |
| ユーザー |
cureskol
|
| 提出日時 | 2020-03-22 14:32:23 |
| 言語 | C++14 (gcc 15.3.0 + boost 1.92.0) |
| 結果 |
AC
|
| 実行時間 | 1 ms / 1,000 ms |
| + 429µs | |
| コード長 | 179 bytes |
| 記録 | |
| コンパイル時間 | 923 ms |
| コンパイル使用メモリ | 178,796 KB |
| 実行使用メモリ | 6,272 KB |
| 最終ジャッジ日時 | 2026-08-24 00:43:40 |
| 合計ジャッジ時間 | 2,222 ms |
|
ジャッジサーバーID (参考情報) |
judge1_0 / judge3_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 17 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
signed main(){
int k,n,f;cin>>k>>n>>f;
k*=n;
while(f--){
int a;cin>>a;k-=a;
}
cout<<(k>=0?k:-1)<<endl;
}
cureskol