結果
| 問題 | No.549 素材合成システム |
| コンテスト | |
| ユーザー |
ant2357
|
| 提出日時 | 2017-08-29 00:34:07 |
| 言語 | C++17 (gcc 13.3.0 + boost 1.89.0) |
| 結果 |
AC
|
| 実行時間 | 43 ms / 2,000 ms |
| コード長 | 206 bytes |
| 記録 | |
| コンパイル時間 | 2,387 ms |
| コンパイル使用メモリ | 196,428 KB |
| 最終ジャッジ日時 | 2025-01-05 02:34:56 |
|
ジャッジサーバーID (参考情報) |
judge2 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 3 |
| other | AC * 44 |
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
1 | #import"bits/stdc++.h"
| ^~~~~~
ソースコード
#import"bits/stdc++.h"
using namespace std;int main(){int n,i,x[100001];cin>>n;memset(x,100001,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;}
ant2357