111542024-07-07 21:42:57probaParti (75 pont)python3Wrong answer 4/75312ms11476 KiB
#tag

N = int(input())
h = [input() for i in range(N)]
#print(h)
tagok = [0]*N

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

print(len(tagok)-(tagok.count(0)+tagok.count(1)))
for i in range(len(tagok)):
    print(i+1 if tagok[i] > 1 else '', end=' ')
    
    
    
SubtaskSumTestVerdictTimeMemory
base4/75
1Wrong answer0/017ms3044 KiB
2Wrong answer0/0166ms7336 KiB
3Wrong answer0/318ms2916 KiB
4Wrong answer0/318ms2916 KiB
5Wrong answer0/317ms2960 KiB
6Wrong answer0/317ms3088 KiB
7Wrong answer0/317ms3044 KiB
8Wrong answer0/418ms3112 KiB
9Wrong answer0/420ms3172 KiB
10Wrong answer0/424ms3300 KiB
11Wrong answer0/419ms3052 KiB
12Wrong answer0/424ms3228 KiB
13Wrong answer0/428ms3428 KiB
14Wrong answer0/429ms3428 KiB
15Wrong answer0/4163ms7308 KiB
16Wrong answer0/4192ms8104 KiB
17Wrong answer0/4218ms9000 KiB
18Wrong answer0/4250ms9896 KiB
19Wrong answer0/4284ms10508 KiB
20Time limit exceeded0/4312ms11476 KiB
21Time limit exceeded0/4305ms11476 KiB
22Accepted4/417ms3064 KiB