Skip to content

Commit 0092006

Browse files
committed
1 parent f26e05c commit 0092006

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ruby/toj/problem_set_1001/input.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
1427 0
1+
1427 17
22

33
876652098643267843
44
5276538

ruby/toj/problem_set_1001/solution.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
#!/usr/bin/env ruby
2-
puts $stdin.readlines.map{|x| Math.sqrt(x.to_f).round(4)}.reverse
2+
puts $stdin.readlines.map{|x| x.strip.split }.flatten.reverse.map{|x| Math.sqrt(x.to_i).round(4)}

0 commit comments

Comments
 (0)