結果

問題 No.185 和風
ユーザー mmmpppmmmppp
提出日時 2017-02-26 01:11:53
言語 Ruby
(3.3.0)
結果
AC  
実行時間 95 ms / 1,000 ms
コード長 51 bytes
コンパイル時間 59 ms
コンパイル使用メモリ 11,504 KB
実行使用メモリ 16,072 KB
最終ジャッジ日時 2023-09-02 08:39:15
合計ジャッジ時間 1,302 ms
ジャッジサーバーID
(参考情報)
judge12 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 87 ms
15,396 KB
testcase_01 AC 95 ms
16,072 KB
testcase_02 AC 88 ms
15,804 KB
testcase_03 AC 91 ms
15,836 KB
testcase_04 AC 89 ms
15,964 KB
testcase_05 AC 82 ms
15,144 KB
testcase_06 AC 90 ms
15,920 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Main.rb:1: warning: assigned but unused variable - n
Syntax OK

ソースコード

diff #

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