結果

問題 No.185 和風
ユーザー gigurururugigurururu
提出日時 2015-04-19 23:27:36
言語 Ruby
(3.3.0)
結果
AC  
実行時間 80 ms / 1,000 ms
コード長 74 bytes
コンパイル時間 53 ms
コンパイル使用メモリ 11,512 KB
実行使用メモリ 15,316 KB
最終ジャッジ日時 2023-08-26 23:16:47
合計ジャッジ時間 1,225 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ(β)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 80 ms
15,032 KB
testcase_01 AC 80 ms
15,124 KB
testcase_02 AC 76 ms
15,092 KB
testcase_03 AC 76 ms
15,168 KB
testcase_04 AC 76 ms
15,000 KB
testcase_05 AC 71 ms
15,032 KB
testcase_06 AC 77 ms
15,316 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