結果
問題 | No.549 素材合成システム |
ユーザー |
|
提出日時 | 2017-07-28 22:32:53 |
言語 | D (dmd 2.109.1) |
結果 |
AC
|
実行時間 | 32 ms / 2,000 ms |
コード長 | 388 bytes |
コンパイル時間 | 862 ms |
コンパイル使用メモリ | 124,796 KB |
実行使用メモリ | 6,944 KB |
最終ジャッジ日時 | 2024-06-12 21:16:29 |
合計ジャッジ時間 | 3,402 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | AC * 3 |
other | AC * 44 |
ソースコード
import std.stdio, std.array, std.string, std.conv, std.algorithm;import std.typecons, std.range, std.random, std.math, std.container;import std.numeric, std.bigint, core.bitop, core.stdc.stdio;void main() {auto N = readln.chomp.to!int;auto A = readln.split.map!(to!int).array;A.sort();int ans = A[N-1];foreach (i; 0..N-1) ans += A[i] / 2;ans.writeln;}