Submission #8529439


Source Code Expand

n,m=map(int,input().split())
a=[]
b=[0]
for i in range(n):
    a.append(list(map(int,input().split())))
for i in range(m):
    if a[i][0] in b:
        b.append(a[i][1])
print(len(set(b)))

Submission Info

Submission Time
Task B - Box and Ball
User maru65536
Language Python (3.4.3)
Score 0
Code Size 196 Byte
Status RE
Exec Time 358 ms
Memory 27300 KB

Judge Result

Set Name Sample All
Score / Max Score 0 / 0 0 / 400
Status
AC × 1
WA × 1
RE × 1
AC × 1
WA × 4
RE × 22
Set Name Test Cases
Sample 0_00.txt, 0_01.txt, 0_02.txt
All 0_00.txt, 0_01.txt, 0_02.txt, 1_00.txt, 1_01.txt, 1_02.txt, 1_03.txt, 1_04.txt, 1_05.txt, 1_06.txt, 1_07.txt, 1_08.txt, 1_09.txt, 1_10.txt, 1_11.txt, 1_12.txt, 1_13.txt, 1_14.txt, 1_15.txt, 1_16.txt, 1_17.txt, 1_18.txt, 1_19.txt, 1_20.txt, 1_21.txt, 1_22.txt, 1_23.txt
Case Name Status Exec Time Memory
0_00.txt RE 16 ms 2940 KB
0_01.txt AC 17 ms 2940 KB
0_02.txt WA 17 ms 2940 KB
1_00.txt RE 17 ms 2936 KB
1_01.txt RE 17 ms 2940 KB
1_02.txt WA 17 ms 2940 KB
1_03.txt WA 17 ms 2940 KB
1_04.txt RE 326 ms 24168 KB
1_05.txt WA 358 ms 27300 KB
1_06.txt RE 187 ms 13620 KB
1_07.txt RE 177 ms 15156 KB
1_08.txt RE 142 ms 12076 KB
1_09.txt RE 220 ms 18280 KB
1_10.txt RE 73 ms 7240 KB
1_11.txt RE 69 ms 7004 KB
1_12.txt RE 25 ms 3564 KB
1_13.txt RE 222 ms 18292 KB
1_14.txt RE 88 ms 8396 KB
1_15.txt RE 65 ms 6620 KB
1_16.txt RE 20 ms 3188 KB
1_17.txt RE 322 ms 26304 KB
1_18.txt RE 153 ms 13092 KB
1_19.txt RE 103 ms 9412 KB
1_20.txt RE 77 ms 7380 KB
1_21.txt RE 145 ms 13092 KB
1_22.txt RE 214 ms 17772 KB
1_23.txt RE 95 ms 9020 KB