結果
問題 | No.394 ハーフパイプ(1) |
ユーザー |
![]() |
提出日時 | 2019-07-31 15:56:20 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 36 ms / 2,000 ms |
コード長 | 328 bytes |
コンパイル時間 | 105 ms |
コンパイル使用メモリ | 30,852 KB |
実行使用メモリ | 31,208 KB |
最終ジャッジ日時 | 2024-07-05 06:29:08 |
合計ジャッジ時間 | 934 ms |
ジャッジサーバーID (参考情報) |
judge5 / judge2 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 11 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php$scores = fgets(STDIN);$score_list = explode(' ',$scores);$total_score = 0;$count = 0;$answer = 0.00;$exclude_num = max($score_list)+min($score_list);foreach($score_list as $index => $score) {$total_score += $score;++$count;}$answer = ($total_score-$exclude_num)/($count-2);printf("%.2f",$answer);?>