Submission #3345498

Source Code Expand

Copy
N, T = map(int, input().split())
ct = [list(map(int,input().split())) for _ in range(N)]

#print(N, T, ct)
ct2 = []
#
for p in ct:
    if p[1] <= T:
        ct2.append(p)

#print(ct2)
if len(ct2) == 0:
    print("TLE")
else:
    print(sorted(ct2)[0][0])

Submission Info

Submission Time
Task B - Time Limit Exceeded
User showyou41
Language Python3 (3.4.3)
Score 200
Code Size 267 Byte
Status
Exec Time 17 ms
Memory 3060 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 17 ms 2940 KB
sample_01 17 ms 2940 KB
sample_02 17 ms 2940 KB
sample_03 17 ms 2940 KB
testcase_1 17 ms 2940 KB
testcase_2 17 ms 3060 KB
testcase_3 17 ms 2940 KB
testcase_4 17 ms 3060 KB
testcase_5 17 ms 2940 KB
testcase_6 17 ms 2940 KB
testcase_7 17 ms 3060 KB
testcase_8 17 ms 3060 KB
testcase_9 17 ms 3060 KB