111532024-07-07 21:24:16probaParti (75 pont)python3Wrong answer 4/75328ms11428 KiB
#tag

N = int(input())
h = [input() for i in range(N)]

tagok = [0]*N

for i in h:
    b = [int(j) for j in i.split(' ')]
    tagok[b[0]-1] += 1
    tagok[b[1]-1] += 1

print(len(tagok)-(tagok.count(0)+tagok.count(1)))
for j, i in enumerate(tagok):
    print(j+1 if i>1 else '', end=' ')
    
    
    
SubtaskSumTestVerdictTimeMemory
base4/75
1Wrong answer0/017ms3020 KiB
2Wrong answer0/0171ms7404 KiB
3Wrong answer0/317ms2960 KiB
4Wrong answer0/318ms2916 KiB
5Wrong answer0/318ms3064 KiB
6Wrong answer0/318ms3060 KiB
7Wrong answer0/318ms3172 KiB
8Wrong answer0/418ms3044 KiB
9Wrong answer0/421ms3172 KiB
10Wrong answer0/423ms3300 KiB
11Wrong answer0/420ms3172 KiB
12Wrong answer0/425ms3332 KiB
13Wrong answer0/428ms3492 KiB
14Wrong answer0/429ms3432 KiB
15Wrong answer0/4172ms7328 KiB
16Wrong answer0/4200ms8144 KiB
17Wrong answer0/4228ms8996 KiB
18Wrong answer0/4264ms9704 KiB
19Time limit exceeded0/4301ms10660 KiB
20Time limit exceeded0/4326ms11428 KiB
21Time limit exceeded0/4328ms11428 KiB
22Accepted4/417ms2960 KiB