Skip to content

Commit 8fc6178

Browse files
authored
Create 2.py
1 parent a0e406b commit 8fc6178

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

4/2.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# H 입력 받기
2+
h = int(input())
3+
4+
count = 0
5+
for i in range(h + 1):
6+
for j in range(60):
7+
for k in range(60):
8+
# 매 시각 안에 '3'이 포함되어 있다면 카운트 증가
9+
if '3' in str(i) + str(j) + str(k):
10+
count += 1
11+
12+
print(count)

0 commit comments

Comments
 (0)