結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
toshiro_yanagi
|
| 提出日時 | 2018-06-03 16:09:32 |
| 言語 | Nim (2.2.0) |
| 結果 |
AC
|
| 実行時間 | 45 ms / 5,000 ms |
| コード長 | 237 bytes |
| コンパイル時間 | 3,264 ms |
| コンパイル使用メモリ | 65,536 KB |
| 実行使用メモリ | 9,088 KB |
| 最終ジャッジ日時 | 2024-06-30 09:24:15 |
| 合計ジャッジ時間 | 4,243 ms |
|
ジャッジサーバーID (参考情報) |
judge3 / judge1 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| 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