結果
| 問題 | No.135 とりあえず1次元の問題 |
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2018-06-03 16:09:32 |
| 言語 | Nim (2.2.10) |
| 結果 |
AC
|
| 実行時間 | 26 ms / 5,000 ms |
| + 919µs | |
| コード長 | 237 bytes |
| 記録 | |
| コンパイル時間 | 2,491 ms |
| コンパイル使用メモリ | 69,756 KB |
| 実行使用メモリ | 9,856 KB |
| 最終ジャッジ日時 | 2026-08-02 08:16:11 |
| 合計ジャッジ時間 | 3,938 ms |
|
ジャッジサーバーID (参考情報) |
judge2_0 / judge1_0 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | AC * 2 |
| other | AC * 22 |
ソースコード
import strutils, sequtils, algorithm var N, X = stdin.readLine.split.map parseInt best = int.high X.sort(cmp) for i in 1 .. X.high: let d = X[i] - X[i - 1] if d != 0: best = min(best, d) [best, 0][int(best == int.high)].echo
toshiro_yanagi