Skip to content

Commit

Permalink
Merge pull request #28 from AlgoLeadMe/8-pu2rile
Browse files Browse the repository at this point in the history
8-pu2rile
  • Loading branch information
pu2rile authored Jul 11, 2024
2 parents 25c0a04 + 6d73338 commit 305af7f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pu2rile/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,4 +8,5 @@
| 4์ฐจ์‹œ | 2024.04.08 | ์Šคํƒ | [์ œ๋กœ](https://www.acmicpc.net/problem/10773) | [#15](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/15#issue-2229909173)
| 5์ฐจ์‹œ | 2024.04.10 | ๊ทธ๋ฆฌ๋”” ์•Œ๊ณ ๋ฆฌ์ฆ˜ | [๊ตญํšŒ์˜์› ์„ ๊ฑฐ](https://www.acmicpc.net/problem/1417) | [#18](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/18#issue-2235862658)
| 6์ฐจ์‹œ | 2024.05.10 | ๊ทธ๋ฆฌ๋”” ์•Œ๊ณ ๋ฆฌ์ฆ˜ | [ATM](https://www.acmicpc.net/problem/11399) | [#25](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/25#issue-2289086909)
| 7์ฐจ์‹œ | 2024.05.10 | ์™„์ „ ํƒ์ƒ‰ ์•Œ๊ณ ๋ฆฌ์ฆ˜ | [์˜ํ™”๊ฐ๋… ์ˆŒ](https://www.acmicpc.net/problem/1436) | [#26](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/26#issue-2289132707)
| 7์ฐจ์‹œ | 2024.05.10 | ์™„์ „ ํƒ์ƒ‰ ์•Œ๊ณ ๋ฆฌ์ฆ˜ | [์˜ํ™”๊ฐ๋… ์ˆŒ](https://www.acmicpc.net/problem/1436) | [#26](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/25#issue-2289086909)
| 8์ฐจ์‹œ | 2024.05.14 | ๊ทธ๋ฆฌ๋”” ์•Œ๊ณ ๋ฆฌ์ฆ˜ | [ํŒ”](https://www.acmicpc.net/problem/1105) | [#28](https://github.com/AlgoLeadMe/AlgoLeadMe-10/pull/28#issue-2295901384)
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
L, R = input().split()

if len(L) != len(R): #๊ฐ ์ˆซ์ž์˜ ์ž๋ฆฟ์ˆ˜๊ฐ€ ๊ฐ™์•„์•ผ ํ•จ, ์„œ๋กœ ๋‹ค๋ฅด๋ฉด 0 ์ถœ๋ ฅ
print(0)
else:
eight = 0
for i in range(len(L)):
if L[i] == R[i] and L[i] == '8': #๊ฐ™์€ ์ž๋ฆฌ์˜ ์ˆซ์ž๊ฐ€ 8์ด๋ฉด
eight += 1 #8์˜ ๊ฐœ์ˆ˜ 1 ์ฆ๊ฐ€
else: #8์ด ์กด์žฌํ•˜๋Š” ์ž๋ฆฟ์ˆ˜๊ฐ€ ๋‹ค๋ฅด๋ฉด ๊ณ„์‚ฐํ•˜์ง€ ์•Š์Œ, ๋น„๊ต ์ค‘๋‹จ
break
print(eight)

0 comments on commit 305af7f

Please sign in to comment.