結果
問題 | No.185 和風 |
ユーザー | LED |
提出日時 | 2019-02-02 18:33:20 |
言語 | Ruby (3.3.0) |
結果 |
WA
|
実行時間 | - |
コード長 | 129 bytes |
コンパイル時間 | 297 ms |
コンパイル使用メモリ | 11,344 KB |
実行使用メモリ | 15,328 KB |
最終ジャッジ日時 | 2023-08-19 02:08:24 |
合計ジャッジ時間 | 1,660 ms |
ジャッジサーバーID (参考情報) |
judge10 / judge12 |
(要ログイン)
テストケース
テストケース表示入力 | 結果 | 実行時間 実行使用メモリ |
---|---|---|
testcase_00 | AC | 81 ms
15,048 KB |
testcase_01 | AC | 82 ms
15,240 KB |
testcase_02 | AC | 82 ms
15,216 KB |
testcase_03 | AC | 87 ms
15,088 KB |
testcase_04 | WA | - |
testcase_05 | WA | - |
testcase_06 | AC | 81 ms
15,172 KB |
コンパイルメッセージ
Syntax OK
ソースコード
n=gets.to_i xy=(0...n).to_a.map{|i|gets.split.map(&:to_i)} d=xy.map{|v|v[1]-v[0]}.uniq puts n>1 && d.size==1 && d[0] ? d[0] : -1