Submission #16810293


Source Code Expand

X = list()
Y = list()
D = list()
score = 0

n,d = map(int, input().split())
for i in range(n):
    x, y = map(int, input().split())
    X.append(x)
    Y.append(y)

for i in range(n):
    dis = (X[i]**2 + Y[i]**2)**0.5
    D.append(dis)

for i in range(n):
    if d >= D[i]:
        score += 1

print(score)

Submission Info

Submission Time
Task B - Distance
User Gerodog
Language Python (3.8.2)
Score 200
Code Size 326 Byte
Status AC
Exec Time 557 ms
Memory 33104 KiB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 200 / 200
Status
AC × 3
AC × 19
Set Name Test Cases
Sample sample_01.txt, sample_02.txt, sample_03.txt
All hand_01.txt, hand_02.txt, hand_03.txt, random_01.txt, random_02.txt, random_03.txt, random_04.txt, random_05.txt, random_06.txt, random_07.txt, random_11.txt, random_12.txt, random_21.txt, random_22.txt, random_31.txt, random_32.txt, sample_01.txt, sample_02.txt, sample_03.txt
Case Name Status Exec Time Memory
hand_01.txt AC 502 ms 19840 KiB
hand_02.txt AC 27 ms 9296 KiB
hand_03.txt AC 21 ms 9160 KiB
random_01.txt AC 184 ms 16484 KiB
random_02.txt AC 550 ms 32716 KiB
random_03.txt AC 116 ms 13280 KiB
random_04.txt AC 551 ms 33036 KiB
random_05.txt AC 51 ms 10532 KiB
random_06.txt AC 557 ms 33040 KiB
random_07.txt AC 127 ms 12772 KiB
random_11.txt AC 556 ms 32756 KiB
random_12.txt AC 541 ms 32936 KiB
random_21.txt AC 549 ms 33020 KiB
random_22.txt AC 548 ms 32972 KiB
random_31.txt AC 546 ms 33104 KiB
random_32.txt AC 549 ms 32872 KiB
sample_01.txt AC 21 ms 9436 KiB
sample_02.txt AC 18 ms 9352 KiB
sample_03.txt AC 25 ms 9284 KiB