From 4137bfc32881f6ee08c0813ecdf1194fb7fc8a9f Mon Sep 17 00:00:00 2001 From: Gyubin Han <89185979+Gyubin-Han@users.noreply.github.com> Date: Thu, 9 May 2024 02:55:07 +0900 Subject: [PATCH] add: swea/1926.py --- swea/1926.py | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 swea/1926.py diff --git a/swea/1926.py b/swea/1926.py new file mode 100644 index 0000000..00a7fb2 --- /dev/null +++ b/swea/1926.py @@ -0,0 +1,17 @@ +n=int(input()) +dont=set(['3','6','9']) + +for i in range(1,n+1): + s=str(i) + + cnt369=0 + for j in s: + if j in dont: + cnt369+=1 + + if cnt369>0: + for j in range(cnt369): + print("-",end="") + print("",end=" ") + else: + print(s,end=" ") \ No newline at end of file