結果
| 問題 |
No.549 素材合成システム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-07-31 13:35:10 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 18 ms / 2,000 ms |
| コード長 | 516 bytes |
| コンパイル時間 | 1,727 ms |
| コンパイル使用メモリ | 171,152 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 16:31:52 |
| 合計ジャッジ時間 | 3,887 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 44 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
#define fastcin {\
cin.tie(0);\
ios::sync_with_stdio(false);\
}
#define rep(i, a, b) for(int i = a; i < b; i++)
#define print(x) cout << x << "\n"
#define VSORT(v) sort(v.begin(), v.end());
typedef vector<int> vi;
int main() {
fastcin;
int n;
cin >> n;
vi x;
rep(i, 0, n) {
int in;
cin >> in;
x.push_back(in);
}
VSORT(x);
rep(i, 0, n-1) {
x[n-1] += x[i]/2;
}
print(x[n-1]);
return 0;
}