結果
| 問題 |
No.549 素材合成システム
|
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2018-07-31 13:41:11 |
| 言語 | C++14 (gcc 13.3.0 + boost 1.87.0) |
| 結果 |
AC
|
| 実行時間 | 11 ms / 2,000 ms |
| コード長 | 431 bytes |
| コンパイル時間 | 1,718 ms |
| コンパイル使用メモリ | 165,108 KB |
| 実行使用メモリ | 5,376 KB |
| 最終ジャッジ日時 | 2024-09-19 16:32:29 |
| 合計ジャッジ時間 | 3,540 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"
int main() {
fastcin;
int n, t = -1, ans = 0;
cin >> n;
rep(i, 0, n) {
int in;
cin >> in;
t = max(t, in);
ans += in/2;
}
ans = ans - t/2 + t;
print(ans);
return 0;
}