Submission #3342869

Source Code Expand

Copy
N, T = gets.split.map(&:to_i)
ans = 10000
N.times do
    c, t = gets.split.map(&:to_i)
    ans = [ans, c].min if t <= T
end
puts ans == 10000 ? 'TLE' : ans

Submission Info

Submission Time
Task B - Time Limit Exceeded
User betrue12
Language Ruby (2.3.3)
Score 200
Code Size 161 Byte
Status
Exec Time 7 ms
Memory 1788 KB

Test Cases

Set Name Score / Max Score Test Cases
All 200 / 200 hand_1, sample_01, sample_02, sample_03, testcase_1, testcase_2, testcase_3, testcase_4, testcase_5, testcase_6, testcase_7, testcase_8, testcase_9
Sample 0 / 0 sample_01, sample_02, sample_03
Case Name Status Exec Time Memory
hand_1 7 ms 1788 KB
sample_01 7 ms 1788 KB
sample_02 7 ms 1788 KB
sample_03 7 ms 1788 KB
testcase_1 7 ms 1788 KB
testcase_2 7 ms 1788 KB
testcase_3 7 ms 1788 KB
testcase_4 7 ms 1788 KB
testcase_5 7 ms 1788 KB
testcase_6 7 ms 1788 KB
testcase_7 7 ms 1788 KB
testcase_8 7 ms 1788 KB
testcase_9 7 ms 1788 KB