結果

問題 No.185 和風
ユーザー mmmpppmmmppp
提出日時 2017-02-26 00:16:49
言語 Ruby
(3.3.0)
結果
AC  
実行時間 92 ms / 1,000 ms
コード長 83 bytes
コンパイル時間 112 ms
コンパイル使用メモリ 11,452 KB
実行使用メモリ 15,996 KB
最終ジャッジ日時 2023-09-02 08:20:36
合計ジャッジ時間 1,343 ms
ジャッジサーバーID
(参考情報)
judge15 / judge14
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 86 ms
15,624 KB
testcase_01 AC 92 ms
15,936 KB
testcase_02 AC 83 ms
15,192 KB
testcase_03 AC 82 ms
15,152 KB
testcase_04 AC 82 ms
15,172 KB
testcase_05 AC 82 ms
15,192 KB
testcase_06 AC 91 ms
15,996 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

f=->{eval(gets.tr(' ',?-))};n=gets.to_i;s=f[];p s<0&&(n-1).times.all?{s==f[]}?-s:-1
0