111522024-07-07 21:22:57probaParti (75 pont)python3Wrong answer 4/75324ms12632 KiB
#tag
N = 8
N = int(input())

h = ['5 3', '4 1', '1 5', '2 1', '3 1', '7 8', '1 2', '3 4']
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/017ms3044 KiB
2Wrong answer0/0172ms7892 KiB
3Wrong answer0/317ms3044 KiB
4Wrong answer0/318ms3044 KiB
5Wrong answer0/318ms2916 KiB
6Wrong answer0/318ms3044 KiB
7Wrong answer0/318ms3044 KiB
8Wrong answer0/419ms3044 KiB
9Wrong answer0/420ms3172 KiB
10Wrong answer0/424ms3448 KiB
11Wrong answer0/420ms3236 KiB
12Wrong answer0/424ms3300 KiB
13Wrong answer0/428ms3564 KiB
14Wrong answer0/429ms3556 KiB
15Wrong answer0/4170ms7800 KiB
16Wrong answer0/4201ms8908 KiB
17Wrong answer0/4230ms9764 KiB
18Wrong answer0/4261ms10788 KiB
19Wrong answer0/4294ms11680 KiB
20Time limit exceeded0/4324ms12632 KiB
21Time limit exceeded0/4324ms12628 KiB
22Accepted4/417ms3192 KiB