結果

問題 No.549 素材合成システム
ユーザー %20
提出日時 2017-08-29 01:22:31
言語 C++17
(gcc 13.3.0 + boost 1.87.0)
結果
AC  
実行時間 15 ms / 2,000 ms
コード長 101 bytes
コンパイル時間 232 ms
コンパイル使用メモリ 26,112 KB
最終ジャッジ日時 2025-01-05 02:35:11
ジャッジサーバーID
(参考情報)
judge5 / judge5
このコードへのチャレンジ
(要ログイン)
ファイルパターン 結果
sample AC * 3
other AC * 44
権限があれば一括ダウンロードができます
コンパイルメッセージ
main.cpp:1:2: warning: #import is a deprecated GCC extension [-Wdeprecated]
    1 | #import<cstdio>
      |  ^~~~~~
main.cpp:2:13: warning: ISO C++ forbids declaration of ‘main’ with no type [-Wreturn-type]
    2 | int x,f,m,z;main(){for(;~scanf("%d",&x);)f++?z+=x/2,x>m?m=x:0:0;printf("%d",z-~m/2);}
      |             ^~~~

ソースコード

diff #

#import<cstdio>
int x,f,m,z;main(){for(;~scanf("%d",&x);)f++?z+=x/2,x>m?m=x:0:0;printf("%d",z-~m/2);}
0