Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.ruby > #6718
| Newsgroups | comp.lang.ruby |
|---|---|
| Date | 2013-01-08 20:14 -0800 |
| References | <5bf55a92-91ef-46ac-96de-f49e57f2dec4@googlegroups.com> |
| Message-ID | <ddd3b360-c28a-4963-a7fa-154f11d66060@googlegroups.com> (permalink) |
| Subject | Re: ACM online judgement for Ruby |
| From | Liber <gjl87910lq@gmail.com> |
i get the solution!
problems here:
https://www.spoj.com/problems/ADDREV/
my ruby code here:
######
N = gets
while( (data=gets) !=nil )
arr = data.split(' ')
result = arr[0].reverse.to_i + arr[1].reverse.to_i
puts result.to_s.reverse.to_i
end
######
best wishes !
gjl87910lq@gmail.com
Back to comp.lang.ruby | Previous | Next — Previous in thread | Next in thread | Find similar
ACM online judgement for Ruby Liber <gjl87910lq@gmail.com> - 2013-01-04 22:04 -0800
Re: ACM online judgement for Ruby Liber <gjl87910lq@gmail.com> - 2013-01-08 20:14 -0800
Re: ACM online judgement for Ruby Robert Klemme <shortcutter@googlemail.com> - 2013-01-12 18:29 +0100
csiph-web