結果

問題 No.549 素材合成システム
ユーザー okadukiokaduki
提出日時 2017-07-28 23:07:02
言語 PHP
(8.3.4)
結果
AC  
実行時間 75 ms / 2,000 ms
コード長 220 bytes
コンパイル時間 5,586 ms
コンパイル使用メモリ 30,624 KB
実行使用メモリ 40,668 KB
最終ジャッジ日時 2024-04-18 11:31:58
合計ジャッジ時間 8,959 ms
ジャッジサーバーID
(参考情報)
judge2 / judge4
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
31,364 KB
testcase_01 AC 43 ms
31,084 KB
testcase_02 AC 42 ms
31,404 KB
testcase_03 AC 37 ms
31,388 KB
testcase_04 AC 36 ms
31,244 KB
testcase_05 AC 37 ms
31,244 KB
testcase_06 AC 38 ms
31,452 KB
testcase_07 AC 73 ms
40,284 KB
testcase_08 AC 72 ms
40,536 KB
testcase_09 AC 72 ms
40,668 KB
testcase_10 AC 71 ms
40,408 KB
testcase_11 AC 73 ms
40,412 KB
testcase_12 AC 72 ms
40,536 KB
testcase_13 AC 75 ms
40,412 KB
testcase_14 AC 71 ms
40,408 KB
testcase_15 AC 74 ms
40,280 KB
testcase_16 AC 72 ms
40,408 KB
testcase_17 AC 60 ms
38,164 KB
testcase_18 AC 53 ms
37,392 KB
testcase_19 AC 55 ms
38,036 KB
testcase_20 AC 55 ms
37,940 KB
testcase_21 AC 60 ms
40,228 KB
testcase_22 AC 58 ms
39,836 KB
testcase_23 AC 62 ms
40,520 KB
testcase_24 AC 67 ms
40,176 KB
testcase_25 AC 64 ms
39,720 KB
testcase_26 AC 73 ms
40,264 KB
testcase_27 AC 65 ms
39,800 KB
testcase_28 AC 35 ms
31,232 KB
testcase_29 AC 34 ms
31,184 KB
testcase_30 AC 34 ms
30,980 KB
testcase_31 AC 59 ms
38,168 KB
testcase_32 AC 61 ms
38,036 KB
testcase_33 AC 61 ms
37,908 KB
testcase_34 AC 62 ms
38,036 KB
testcase_35 AC 63 ms
40,636 KB
testcase_36 AC 66 ms
37,904 KB
testcase_37 AC 63 ms
38,164 KB
testcase_38 AC 38 ms
31,364 KB
testcase_39 AC 36 ms
31,060 KB
testcase_40 AC 62 ms
36,496 KB
testcase_41 AC 45 ms
33,676 KB
testcase_42 AC 36 ms
31,528 KB
testcase_43 AC 44 ms
33,804 KB
testcase_44 AC 38 ms
31,884 KB
testcase_45 AC 44 ms
34,060 KB
testcase_46 AC 42 ms
32,648 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = (int)trim(fgets(STDIN));
$xs = array_map(function($x){ return (int)$x;}, explode(' ', trim(fgets(STDIN))));
sort($xs);

$ans = array_pop($xs);
foreach($xs as $x)
    $ans += intdiv($x, 2);
echo $ans . PHP_EOL;
0