結果

問題 No.185 和風
ユーザー mmmpppmmmppp
提出日時 2017-02-26 00:54:59
言語 Ruby
(3.3.0)
結果
AC  
実行時間 93 ms / 1,000 ms
コード長 62 bytes
コンパイル時間 136 ms
コンパイル使用メモリ 11,580 KB
実行使用メモリ 16,016 KB
最終ジャッジ日時 2023-09-02 08:36:43
合計ジャッジ時間 1,533 ms
ジャッジサーバーID
(参考情報)
judge16 / judge12
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

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