[오늘의 BOJ] 3553

타샤's 월드·2025년 8월 8일
0

ㅎㅎㅎ 오우 쉣

import sys
n,d = map(int, sys.stdin.readline().split())

def dragon(n, d):
  small= (10 ** (n-1))
  big = (10 ** n)

  for i in range(small, big):
    if i % d == 0:
      return i
  return "No solution"
print(dragon(n,d))
profile
그때 그때 꽂힌것 하는 개발블로그

0개의 댓글