結果

問題 No.394 ハーフパイプ(1)
ユーザー leos_caraxleos_carax
提出日時 2016-10-23 17:31:07
言語 PHP
(8.3.4)
結果
AC  
実行時間 42 ms / 2,000 ms
コード長 167 bytes
コンパイル時間 96 ms
コンパイル使用メモリ 30,792 KB
実行使用メモリ 31,052 KB
最終ジャッジ日時 2024-05-03 04:49:19
合計ジャッジ時間 1,215 ms
ジャッジサーバーID
(参考情報)
judge1 / judge3
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 42 ms
30,928 KB
testcase_01 AC 41 ms
31,004 KB
testcase_02 AC 40 ms
30,840 KB
testcase_03 AC 40 ms
30,964 KB
testcase_04 AC 41 ms
30,972 KB
testcase_05 AC 41 ms
30,972 KB
testcase_06 AC 40 ms
31,044 KB
testcase_07 AC 40 ms
30,804 KB
testcase_08 AC 41 ms
31,052 KB
testcase_09 AC 40 ms
30,840 KB
testcase_10 AC 40 ms
31,012 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$sum = explode(" ", trim(fgets(STDIN)));
$a = max($sum);
$b = min($sum);
$avr = array_sum($sum) - ($a + $b);
$ans =  $avr / 4;
echo sprintf('%.2f',$ans),PHP_EOL;
0