結果
| 問題 |
No.135 とりあえず1次元の問題
|
| コンテスト | |
| ユーザー |
wonda_t_coffee
|
| 提出日時 | 2020-01-29 10:55:46 |
| 言語 | Ruby (3.4.1) |
| 結果 |
TLE
|
| 実行時間 | - |
| コード長 | 193 bytes |
| コンパイル時間 | 100 ms |
| コンパイル使用メモリ | 7,296 KB |
| 実行使用メモリ | 30,624 KB |
| 最終ジャッジ日時 | 2024-09-16 00:45:04 |
| 合計ジャッジ時間 | 12,574 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge5 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| sample | -- * 2 |
| other | TLE * 1 -- * 21 |
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n Syntax OK
ソースコード
n = gets.chomp.to_i x = gets.chomp.split.map(&:to_i).uniq if x.size == 1 puts 0 exit end ans = 0xffffffff x.combination(2) do |p| x1, x2 = p ans = [ans, (x1-x2).abs].min end puts ans
wonda_t_coffee