結果

問題 No.10 +か×か
ユーザー syarosyaro
提出日時 2016-02-23 18:02:18
言語 Ruby
(3.3.0)
結果
WA  
実行時間 -
コード長 159 bytes
コンパイル時間 717 ms
コンパイル使用メモリ 11,924 KB
実行使用メモリ 813,036 KB
最終ジャッジ日時 2023-10-23 19:26:37
合計ジャッジ時間 4,124 ms
ジャッジサーバーID
(参考情報)
judge15 / judge11
このコードへのチャレンジ
(要ログイン)

テストケース

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

ソースコード

diff #

eval"N,T,*A="+gets(p).split*?,
d=*[p]*N-=2,e=[p]*T+[1]
N.times{|i|d[N+~i]=e=(0..T).map{|j|e[j+b=A[~i]]||e[j*b]}}
v,*a=A
a.zip(d){|b,e|putc e[v+b]??+:?**v=b*=v}
0