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