사생활 보호 설정
https://gamjia.tistory.com
Updated News
Mini Rooms
답글수 [0]
What Friends Say
한마디로 표현해봐~
1촌평 관리
1436번 영화감독 숌
GamJia 2023. 4. 3. 09:05
단계별로 풀어보기 - 브루트 포스 - 5단계
https://www.acmicpc.net/problem/1436
#include <iostream> #include <string> using namespace std; int main() { int N,count=0; cin>>N; for(int i=666;;i++) { if(to_string(i).find("666")!=-1) { count++; } if(N==count) { cout<<i; break; } } return 0; }
🔊 종말의 수 예시
666 1666... 6660 6661 6662... 6669...