結果

問題 No.185 和風
ユーザー gigurururugigurururu
提出日時 2015-04-19 23:25:03
言語 Ruby
(3.2.2)
結果
WA  
実行時間 -
コード長 73 bytes
コンパイル時間 264 ms
コンパイル使用メモリ 11,416 KB
実行使用メモリ 15,352 KB
最終ジャッジ日時 2023-09-18 01:16:48
合計ジャッジ時間 1,861 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 89 ms
15,308 KB
testcase_01 AC 82 ms
15,348 KB
testcase_02 AC 83 ms
15,272 KB
testcase_03 AC 83 ms
15,296 KB
testcase_04 AC 84 ms
15,168 KB
testcase_05 WA -
testcase_06 AC 83 ms
15,352 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

_,*l=$<.map{|l|l.split.map &:to_i}
i,j=l.map{|x,y|y-x}.uniq
p j||i<0?-1:i
0