# |
Submission time |
Handle |
Problem |
Language |
Result |
Execution time |
Memory |
1092801 |
2024-09-25T07:18:40 Z |
vibeslayer |
Aron (COCI17_aron) |
Python 3 |
|
14 ms |
2944 KB |
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 time |
Memory |
Grader output |
1 |
Correct |
11 ms |
2908 KB |
Output is correct |
2 |
Correct |
10 ms |
2756 KB |
Output is correct |
3 |
Correct |
10 ms |
2888 KB |
Output is correct |
4 |
Correct |
10 ms |
2908 KB |
Output is correct |
5 |
Correct |
10 ms |
2944 KB |
Output is correct |
6 |
Correct |
11 ms |
2920 KB |
Output is correct |
7 |
Correct |
14 ms |
2908 KB |
Output is correct |
8 |
Correct |
10 ms |
2908 KB |
Output is correct |
9 |
Correct |
10 ms |
2908 KB |
Output is correct |
10 |
Correct |
11 ms |
2732 KB |
Output is correct |