結果
問題 |
No.549 素材合成システム
|
ユーザー |
![]() |
提出日時 | 2019-03-28 14:49:54 |
言語 | C (gcc 13.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 250 bytes |
コンパイル時間 | 159 ms |
コンパイル使用メモリ | 28,544 KB |
実行使用メモリ | 6,824 KB |
最終ジャッジ日時 | 2024-10-12 22:00:37 |
合計ジャッジ時間 | 1,826 ms |
ジャッジサーバーID (参考情報) |
judge2 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | WA * 3 |
other | WA * 44 |
ソースコード
#include <stdio.h> int main(){ int n; int ans; int max; int c; scanf("%d",&n); for (int i=0;i<n;i++) { scanf("%d",&c); max=(c>ans)?c:ans; ans+=c/2; } ans+=max/2+max%2; printf("%d\n",ans); }