結果

問題 No.549 素材合成システム
ユーザー takeya_okinotakeya_okino
提出日時 2017-07-29 12:37:42
言語 PHP
(8.3.4)
結果
AC  
実行時間 157 ms / 2,000 ms
コード長 191 bytes
コンパイル時間 101 ms
コンパイル使用メモリ 32,400 KB
実行使用メモリ 42,864 KB
最終ジャッジ日時 2024-04-19 05:05:26
合計ジャッジ時間 5,918 ms
ジャッジサーバーID
(参考情報)
judge2 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 41 ms
32,528 KB
testcase_01 AC 45 ms
32,528 KB
testcase_02 AC 40 ms
32,404 KB
testcase_03 AC 41 ms
32,400 KB
testcase_04 AC 42 ms
32,400 KB
testcase_05 AC 41 ms
32,404 KB
testcase_06 AC 45 ms
32,400 KB
testcase_07 AC 157 ms
42,608 KB
testcase_08 AC 155 ms
42,224 KB
testcase_09 AC 156 ms
42,864 KB
testcase_10 AC 157 ms
42,740 KB
testcase_11 AC 155 ms
42,740 KB
testcase_12 AC 157 ms
42,736 KB
testcase_13 AC 156 ms
42,480 KB
testcase_14 AC 154 ms
42,612 KB
testcase_15 AC 156 ms
42,352 KB
testcase_16 AC 155 ms
42,480 KB
testcase_17 AC 68 ms
38,512 KB
testcase_18 AC 63 ms
38,460 KB
testcase_19 AC 67 ms
38,332 KB
testcase_20 AC 65 ms
38,460 KB
testcase_21 AC 119 ms
42,428 KB
testcase_22 AC 117 ms
42,680 KB
testcase_23 AC 128 ms
42,484 KB
testcase_24 AC 144 ms
40,376 KB
testcase_25 AC 129 ms
40,376 KB
testcase_26 AC 150 ms
42,552 KB
testcase_27 AC 134 ms
40,508 KB
testcase_28 AC 41 ms
32,400 KB
testcase_29 AC 41 ms
32,400 KB
testcase_30 AC 41 ms
32,276 KB
testcase_31 AC 67 ms
38,512 KB
testcase_32 AC 66 ms
38,640 KB
testcase_33 AC 66 ms
38,512 KB
testcase_34 AC 67 ms
38,388 KB
testcase_35 AC 129 ms
42,612 KB
testcase_36 AC 77 ms
38,516 KB
testcase_37 AC 74 ms
38,512 KB
testcase_38 AC 41 ms
32,400 KB
testcase_39 AC 41 ms
32,404 KB
testcase_40 AC 104 ms
36,664 KB
testcase_41 AC 66 ms
34,492 KB
testcase_42 AC 43 ms
32,532 KB
testcase_43 AC 51 ms
34,104 KB
testcase_44 AC 44 ms
32,404 KB
testcase_45 AC 53 ms
34,232 KB
testcase_46 AC 48 ms
34,492 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$N = trim(fgets(STDIN));
$x = explode(" ", trim(fgets(STDIN)));
sort($x);
$ans = $x[$N - 1];
for($i = 0; $i < $N - 1; $i++) {
  $ans += intdiv($x[$i], 2);
}
print($ans);
print("\n");
?>
0