Create a gist now

Instantly share code, notes, and snippets.

Educational Codeforces Round 5
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
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