結果

問題 No.135 とりあえず1次元の問題
ユーザー mondomondo
提出日時 2019-07-30 16:38:58
言語 PHP
(8.3.4)
結果
WA  
実行時間 -
コード長 246 bytes
コンパイル時間 1,096 ms
コンパイル使用メモリ 11,940 KB
実行使用メモリ 26,784 KB
最終ジャッジ日時 2023-09-18 08:19:16
合計ジャッジ時間 3,049 ms
ジャッジサーバーID
(参考情報)
judge11 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 158 ms
26,784 KB
testcase_01 AC 7 ms
12,396 KB
testcase_02 AC 7 ms
12,416 KB
testcase_03 WA -
testcase_04 AC 7 ms
12,464 KB
testcase_05 AC 7 ms
12,384 KB
testcase_06 AC 7 ms
12,472 KB
testcase_07 AC 7 ms
12,524 KB
testcase_08 AC 7 ms
12,468 KB
testcase_09 AC 7 ms
12,464 KB
testcase_10 AC 8 ms
12,392 KB
testcase_11 AC 7 ms
12,460 KB
testcase_12 WA -
testcase_13 WA -
testcase_14 WA -
testcase_15 WA -
testcase_16 WA -
testcase_17 WA -
testcase_18 WA -
testcase_19 AC 7 ms
12,400 KB
testcase_20 AC 7 ms
12,404 KB
testcase_21 AC 13 ms
19,888 KB
testcase_22 AC 152 ms
26,724 KB
evil01.txt AC 143 ms
26,784 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
No syntax errors detected in Main.php

ソースコード

diff #

<?php
$n = trim(fgets(STDIN));
$number = explode(" ", trim(fgets(STDIN)));
$num = array_unique($number);
sort($num);
// print_r($num);
$i = array();
foreach ($num as $key => $value){
    $i[] = $num[$key] - $num[$key - 1];
}
sort($i);
echo $i[1];
0