- プログラミングのお題スレ Part8©2ch.net
832 :デフォルトの名無しさん[sage]:2016/10/09(日) 01:39:18.78 ID:okPyT/Vt - 1行で
gets.chomp!.split(/[c+-]/,-1)&['']!=[]?$><<:ERROR:(~/c/?$_[/c\K[^c]*$/]:$_).split(/\b/).tap{|a|$><<a.each_with_index{|s,i|s.to_s[/\d/]?next: a[i-e=44-s.ord]=a[i-e].to_i+e;a[i]=p}*''}
|