結果
問題 |
No.135 とりあえず1次元の問題
|
ユーザー |
![]() |
提出日時 | 2015-02-26 17:45:12 |
言語 | Nim (2.2.0) |
結果 |
TLE
|
実行時間 | - |
コード長 | 309 bytes |
コンパイル時間 | 3,245 ms |
コンパイル使用メモリ | 65,152 KB |
実行使用メモリ | 14,080 KB |
最終ジャッジ日時 | 2024-06-28 22:18:50 |
合計ジャッジ時間 | 15,572 ms |
ジャッジサーバーID (参考情報) |
judge1 / judge3 |
(要ログイン)
ファイルパターン | 結果 |
---|---|
sample | -- * 2 |
other | TLE * 1 -- * 21 |
コンパイルメッセージ
/home/judge/data/code/Main.nim(1, 28) Warning: imported and not used: 'math' [UnusedImport]
ソースコード
import strutils, sequtils, math var n = readLine(stdin).parseInt x_seq = split(readLine(stdin), ' ').map(parseInt) min_v = high(int) tmp : int for i in countup(0, n - 2): for j in countup(1, n - 1): tmp = abs(x_seq[i] - x_seq[j]) if tmp > 0 and min_v > tmp: min_v = tmp echo(min_v)