Created
January 13, 2016 13:34
-
-
Save whatalnk/3498b53df81f9cb756a4 to your computer and use it in GitHub Desktop.
Educational Codeforces Round 5
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = gets.chomp.rjust(10**6, "0") | |
b = gets.chomp.rjust(10**6, "0") | |
if a == b then | |
puts "=" | |
elsif a > b then | |
puts ">" | |
else | |
puts "<" | |
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
n, m = gets.chomp.split(" ").map(&:to_i) | |
restraunts = [] | |
street = gets.chomp.split(" ").map(&:to_i) | |
street_min = street.min | |
row = 0 | |
restraunts << street | |
(n-1).times do |i| | |
street = gets.chomp.split(" ").map(&:to_i) | |
if street_min < street.min then | |
street_min = street.min | |
row = i + 1 | |
end | |
restraunts << street | |
end | |
puts restraunts[row].min |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment