結果
| 問題 | No.716 距離 |
| コンテスト | |
| ユーザー |
|
| 提出日時 | 2019-12-04 22:24:33 |
| 言語 | Ruby (3.4.1) |
| 結果 |
WA
|
| 実行時間 | - |
| コード長 | 159 bytes |
| コンパイル時間 | 334 ms |
| コンパイル使用メモリ | 7,552 KB |
| 実行使用メモリ | 37,888 KB |
| 最終ジャッジ日時 | 2024-12-14 12:41:43 |
| 合計ジャッジ時間 | 16,306 ms |
|
ジャッジサーバーID (参考情報) |
judge1 / judge2 |
(要ログイン)
| ファイルパターン | 結果 |
|---|---|
| other | WA * 40 |
コンパイルメッセージ
Syntax OK
ソースコード
_=gets.to_i
a=gets.split.map(&:to_i)
x,y=a.map.with_index{|m,i|a.map.with_index{|n,j|i==j ? nil : (n-m).abs}}.flatten.select{|n|n!=nil}.minmax
puts "#{x} #{y}"