結果

問題 No.10 +か×か
ユーザー gigurururugigurururu
提出日時 2014-11-26 23:29:31
言語 Ruby
(3.3.0)
結果
TLE  
実行時間 -
コード長 140 bytes
コンパイル時間 463 ms
コンパイル使用メモリ 11,468 KB
実行使用メモリ 20,012 KB
最終ジャッジ日時 2023-09-01 22:17:10
合計ジャッジ時間 7,781 ms
ジャッジサーバーID
(参考情報)
judge11 / judge16
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,088 KB
testcase_01 AC 81 ms
15,300 KB
testcase_02 AC 80 ms
15,332 KB
testcase_03 TLE -
testcase_04 -- -
testcase_05 -- -
testcase_06 -- -
testcase_07 -- -
testcase_08 -- -
testcase_09 -- -
testcase_10 -- -
testcase_11 -- -
権限があれば一括ダウンロードができます
コンパイルメッセージ
Syntax OK

ソースコード

diff #

n=gets.to_i-1
t=gets.to_i
a=gets.split
puts [?+,?*].repeated_permutation(n).find{|i|eval(?(*n+a.zip(i).map{|j,k|k ?(j+?)+k):j}*"")==t}*""
0