結果

問題 No.185 和風
ユーザー mmmpppmmmppp
提出日時 2017-02-26 01:05:41
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 50 bytes
コンパイル時間 294 ms
コンパイル使用メモリ 11,564 KB
実行使用メモリ 15,956 KB
最終ジャッジ日時 2023-09-02 08:38:28
合計ジャッジ時間 1,357 ms
ジャッジサーバーID
(参考情報)
judge15 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 WA -
testcase_01 WA -
testcase_02 WA -
testcase_03 WA -
testcase_04 AC 90 ms
15,956 KB
testcase_05 AC 85 ms
15,228 KB
testcase_06 WA -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

n,a,b=$<.map{|s|eval s.tr' ',?-}|[];p b||a<0?a: -1
0