summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorsvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-11 14:37:45 (GMT)
committersvn <svn@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-12-11 14:37:45 (GMT)
commit4a1a74991dafaf85f79db00ee828624d20989c01 (patch)
treef1414f74f28e64508ad5ef48b571d7eebd763b25 /sample
parent5c28308f9fbb44bfc73fe8af58fdcce0ad0379f2 (diff)
* append newline at EOF.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53042 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'sample')
-rw-r--r--sample/trick2015/eregon/entry.rb2
-rw-r--r--sample/trick2015/ksk_2/entry.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/sample/trick2015/eregon/entry.rb b/sample/trick2015/eregon/entry.rb
index b325c6c..51d5c76 100644
--- a/sample/trick2015/eregon/entry.rb
+++ b/sample/trick2015/eregon/entry.rb
@@ -13,4 +13,4 @@ e?{|k|"[_,_,_, _,_,4, _,9,2]+"s[r][k]
p{puts"[9,3,_, _,8,_, 1,_,_]+" s.map{
|r|r*'"[2,_,_, 5,_,_, _,4,8]+" '}<<''
;C.yield}};c=l[i=1];loop{c=l[i+=c.res
-ume ? 1:-1]}";eval z.tr ?\n,'' \ No newline at end of file
+ume ? 1:-1]}";eval z.tr ?\n,''
diff --git a/sample/trick2015/ksk_2/entry.rb b/sample/trick2015/ksk_2/entry.rb
index 506e9e6..55b488e 100644
--- a/sample/trick2015/ksk_2/entry.rb
+++ b/sample/trick2015/ksk_2/entry.rb
@@ -1 +1 @@
-_='s %sSATISFIABLE';puts eval$<.read.gsub(/.*p.*?(\d+).*?$|\d+/m){$1?%w[?-* +'=-'=~/#{'(-?)'* }-*=(?=]*$1:$&>?0?"\\#$&$|":'$)(?='}+')/x?[_%p%i=0,[*$~].map{|x|x>?-?:v:eval(x+?1)*i-=1}*" "]:_%:UN' \ No newline at end of file
+_='s %sSATISFIABLE';puts eval$<.read.gsub(/.*p.*?(\d+).*?$|\d+/m){$1?%w[?-* +'=-'=~/#{'(-?)'* }-*=(?=]*$1:$&>?0?"\\#$&$|":'$)(?='}+')/x?[_%p%i=0,[*$~].map{|x|x>?-?:v:eval(x+?1)*i-=1}*" "]:_%:UN'