結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
mondo
|
| 提出日時 | 2019-07-30 16:38:58 |
| 言語 | PHP (843.2) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 246 bytes |
| コンパイル時間 | 77 ms |
| コンパイル使用メモリ | 32,272 KB |
| 実行使用メモリ | 47,168 KB |
| 最終ジャッジ日時 | 2024-07-05 00:17:58 |
| 合計ジャッジ時間 | 2,835 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | WA * 2 |
| other | WA * 22 |
コンパイルメッセージ
No syntax errors detected in Main.php
ソースコード
<?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];
mondo