結果
| 問題 | No.143 豆 |
| コンテスト | |
| ユーザー |
himo
|
| 提出日時 | 2019-08-13 12:40:14 |
| 言語 | C++11(廃止可能性あり) (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 313 bytes |
| 記録 | |
| コンパイル時間 | 1,436 ms |
| コンパイル使用メモリ | 159,192 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 13:23:20 |
| 合計ジャッジ時間 | 1,826 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | AC * 9 WA * 8 |
ソースコード
#include <bits/stdc++.h>
using namespace std;
int main(){
int k , n,f;
cin >> k >> n >> f;
int check =0;
vector <int> a (f);
for (int i =0;i<f; i++){
cin >> a.at(i);
check+=a.at(i);
}
if(check>k*n){
cout << -1 << endl;
}
else {
cout << k*n%check << endl;
}
}
himo