Skip to content

Instantly share code, notes, and snippets.

@whatalnk
Created January 13, 2016 13:34
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save whatalnk/3498b53df81f9cb756a4 to your computer and use it in GitHub Desktop.
Save whatalnk/3498b53df81f9cb756a4 to your computer and use it in GitHub Desktop.
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