Notice
Recent Posts
Recent Comments
Link
목록1436 (1)
나의 개발일지
문제 : https://www.acmicpc.net/problem/1436 🔑 in 연산자 숫자를 666부터 시작 숫자에 666이 들어있는지 확인 str()로 형변환 후 in 연산자 적용 666이 들어간 숫자 n개를 찾을 때까지 숫자를 1씩 증가시키면서 반복 n = int(input()) title = 666 cnt = 0 while cnt != n: if '666' in str(title): cnt += 1 title += 1 print(title-1)
백준
2023. 12. 3. 17:06