結果
| 問題 | No.549 素材合成システム |
| コンテスト | |
| ユーザー |
ant2357
|
| 提出日時 | 2017-08-29 00:27:23 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
RE
|
| 実行時間 | - |
| コード長 | 239 bytes |
| 記録 | |
| コンパイル時間 | 2,266 ms |
| コンパイル使用メモリ | 198,280 KB |
| 最終ジャッジ日時 | 2025-01-05 02:34:23 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 10 RE * 34 |
ソースコード
#include "bits/stdc++.h"
using namespace std;
int main() {
int n,i,x[10001];
cin>>n;
memset(x,10001,sizeof(x));
for(i=n;i--;)cin>>x[i];
sort(x,x+n,greater<int>());
for(i=n-1;i>=1;i--)x[0]+=x[i]/2;
cout<<x[0]<<endl;
return 0;
}
ant2357