We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f26e05c commit 0092006Copy full SHA for 0092006
ruby/toj/problem_set_1001/input.txt
@@ -1,4 +1,4 @@
1
- 1427 0
+ 1427 17
2
3
876652098643267843
4
5276538
ruby/toj/problem_set_1001/solution.rb
@@ -1,2 +1,2 @@
#!/usr/bin/env ruby
-puts $stdin.readlines.map{|x| Math.sqrt(x.to_f).round(4)}.reverse
+puts $stdin.readlines.map{|x| x.strip.split }.flatten.reverse.map{|x| Math.sqrt(x.to_i).round(4)}
0 commit comments