제출 #1092801

#제출 시각아이디문제언어결과실행 시간메모리
1092801vibeslayerAron (COCI17_aron)Cpython 3
50 / 50
14 ms2944 KiB
n = int(input())

prev = '-1'
c = 0
for i in range(n):
    x = input()
    if x != prev:
        c += 1
    prev = x

print(c+1)
#Verdict Execution timeMemoryGrader output
Fetching results...