結果

問題 No.394 ハーフパイプ(1)
ユーザー papinianuspapinianus
提出日時 2016-07-25 12:56:23
言語 PHP
(8.3.4)
結果
AC  
実行時間 38 ms / 2,000 ms
コード長 232 bytes
コンパイル時間 69 ms
コンパイル使用メモリ 31,024 KB
実行使用メモリ 30,948 KB
最終ジャッジ日時 2024-04-24 08:53:37
合計ジャッジ時間 933 ms
ジャッジサーバーID
(参考情報)
judge3 / judge5
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 33 ms
30,916 KB
testcase_01 AC 34 ms
30,512 KB
testcase_02 AC 33 ms
30,904 KB
testcase_03 AC 35 ms
30,660 KB
testcase_04 AC 38 ms
30,736 KB
testcase_05 AC 37 ms
30,556 KB
testcase_06 AC 33 ms
30,660 KB
testcase_07 AC 34 ms
30,688 KB
testcase_08 AC 33 ms
30,728 KB
testcase_09 AC 38 ms
30,612 KB
testcase_10 AC 36 ms
30,948 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$points = explode(" ", trim(fgets(STDIN)));
$max = max($points);
$min = min($points);
unset($points[array_search($max, $points)]);
unset($points[array_search($min, $points)]);
printf("%.2f",array_sum($points)/4);
echo PHP_EOL;
0