結果
問題 |
No.21 平均の差
|
ユーザー |
|
提出日時 | 2016-09-23 16:37:10 |
言語 | PHP (843.2) |
結果 |
AC
|
実行時間 | 42 ms / 5,000 ms |
コード長 | 421 bytes |
コンパイル時間 | 1,987 ms |
コンパイル使用メモリ | 31,404 KB |
実行使用メモリ | 31,520 KB |
最終ジャッジ日時 | 2024-11-17 19:02:08 |
合計ジャッジ時間 | 2,990 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge4 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
other | AC * 10 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?php $input_lines = trim(fgets(STDIN)); $input_lines = str_replace(array("\r\n","\r","\n"), "", $input_lines); do { $tmpStr[] = $input_lines; $input_lines = trim(fgets(STDIN)); $input_lines = str_replace(array("\r\n","\r","\n"), "", $input_lines); } while ($input_lines !== ""); $max = $tmpStr[0] - 1; array_shift($tmpStr); array_shift($tmpStr); sort($tmpStr); echo $tmpStr[$max] - $tmpStr[0];