結果
問題 |
No.143 豆
|
ユーザー |
|
提出日時 | 2019-07-10 11:48:29 |
言語 | C++11(廃止可能性あり) (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 380 bytes |
コンパイル時間 | 1,436 ms |
コンパイル使用メモリ | 157,436 KB |
実行使用メモリ | 5,248 KB |
最終ジャッジ日時 | 2024-10-14 17:22:07 |
合計ジャッジ時間 | 2,371 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | WA * 17 |
ソースコード
#include <bits/stdc++.h> using namespace std; int main() { int k, n, f; cin >> k >> n >> f; int count = k*n; int a[1000]; for (auto& i : a) { cin >> i; count -= i; // sort(a, a + f); // if (n & 1) { // cout << a[n / 2] << endl; // } else { // cout << (a[n / 2 - 1] + a[n / 2]) / 2.0 << endl; // } } cout << count << endl; return 0; }