結果

問題 No.549 素材合成システム
ユーザー greentea011
提出日時 2019-03-28 14:59:20
言語 C
(gcc 13.3.0)
結果
WA  
実行時間 -
コード長 260 bytes
コンパイル時間 1,526 ms
コンパイル使用メモリ 27,392 KB
実行使用メモリ 6,824 KB
最終ジャッジ日時 2024-10-12 22:16:21
合計ジャッジ時間 2,051 ms
ジャッジサーバーID
(参考情報)
judge4 / judge2
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample WA * 3
other WA * 44
権限があれば一括ダウンロードができます

ソースコード

diff #

#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>max)?c:max;
        ans+=(c>>1);
    }
    ans+=(max>>1)+(max&0x1);
    printf("%d\n",ans);
}
0