結果

問題 No.10 +か×か
ユーザー syarosyaro
提出日時 2016-02-23 18:01:15
言語 Ruby
(3.3.0)
結果
AC  
実行時間 860 ms / 5,000 ms
コード長 162 bytes
コンパイル時間 68 ms
コンパイル使用メモリ 11,588 KB
実行使用メモリ 54,364 KB
最終ジャッジ日時 2023-08-21 06:17:30
合計ジャッジ時間 4,821 ms
ジャッジサーバーID
(参考情報)
judge14 / judge15
このコードへのチャレンジ
(要ログイン)

テストケース

テストケース表示
入力 結果 実行時間
実行使用メモリ
testcase_00 AC 82 ms
15,264 KB
testcase_01 AC 82 ms
15,256 KB
testcase_02 AC 80 ms
15,116 KB
testcase_03 AC 860 ms
54,364 KB
testcase_04 AC 580 ms
41,116 KB
testcase_05 AC 79 ms
15,024 KB
testcase_06 AC 856 ms
54,364 KB
testcase_07 AC 586 ms
41,584 KB
testcase_08 AC 216 ms
22,924 KB
testcase_09 AC 329 ms
29,264 KB
testcase_10 AC 83 ms
15,376 KB
testcase_11 AC 80 ms
15,268 KB
権限があれば一括ダウンロードができます
コンパイルメッセージ
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-b}
0