Created
October 8, 2018 08:11
-
-
Save whatalnk/b41341b43af3cb790503b708b0cd4f32 to your computer and use it in GitHub Desktop.
AtCoder ABC #112 B
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, t = gets.chomp.split(" ").map(&:to_i) | |
a = [] | |
n.times do | |
a << gets.chomp.split(" ").map(&:to_i) | |
end | |
a.sort_by!{|x| x[0]} | |
a.each do |x| | |
if x[1] <= t | |
puts x[0] | |
exit | |
end | |
end | |
puts "TLE" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment