Skip to content

Commit

Permalink
시각 (#3)
Browse files Browse the repository at this point in the history
  • Loading branch information
ezidayzi committed Jan 4, 2022
1 parent b14f21b commit 90b59f2
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
n = int(input())

xn, yn, zn = 0, 0, 0

for i in range(n+1):
if str(i).find('3', 0, 2) >= 0:
xn += 1

for i in range(60):
if str(i).find('3', 0, 2) >= 0:
print(i)
yn += 1

zn = yn
print((n+1)*60*60-((n+1)-xn)*(60-yn)*(60-zn))

0 comments on commit 90b59f2

Please sign in to comment.