Skip to content

Commit

Permalink
[BOJ] 1439번 뒤집기 (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
heerucan committed Apr 1, 2022
1 parent afff12f commit 9f1285d
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions CodingTest/CH3 그리디/문자열뒤집기.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
s = list(map(int, input()))
count = 0
for i in range(len(s)):
if s[i-1] != s[i]:
count += 1

print(count//2)


0 comments on commit 9f1285d

Please sign in to comment.