Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- 언리얼엔진5 #언리얼 클라이언트 프로그래밍
- UE_5
- 오늘밤 세계에서 이 사랑이 사라진다 해도 #독후감 #오열
- Module
- 원카페#무인카페#카페추천#카페맛집
- Harvard
- build.cs
- 네트워크 기초
- 폭설 #미친 날씨
- topdownmove
- 툰쉐이딩
- 언리얼 엔진5 #언리얼 클라이언트 프로그래밍
- Toon Shading
- C++
- CS50
- STL
- Unreal
- Gas
- A* Algorithm
- 백준
- CS
- 브론즈
- 메테리얼
- 코드리뷰
- 헤더 경로
- c++ 베이직
- Console
- 순환 리스트
- 언리얼
- leetcode
Archives
- Today
- Total
WN_인생기록
1436 - 영화감독 숌 (백준) 본문
https://www.acmicpc.net/problem/1436
#include <iostream>
#include <vector>
#include<string>
using namespace std;
// int num을 문자열로 바꿔서 666이 들어간 숫자 확인하기
bool findEndNum(int num)
{
return to_string(num).find("666") != string::npos;
}
int main()
{
// 가장 작은 숫자인 666부터 시작
int N;
int num = 666;
int count =0;
cin >> N;
while (true)
{
if (findEndNum(num))
{
count++;
if (count == N)
{
cout << num << "\n";
return 0;
}
}
num++;
}
return 0;
};'알고리즘 > 문제풀이' 카테고리의 다른 글
| 11653 - 소인수분해(백준) (1) | 2024.06.08 |
|---|---|
| 9506-약수들의 합 (백준) (0) | 2024.06.07 |
| 2231 - 분해합(백준) (0) | 2024.06.05 |
| 2869 - 달팽이는 올라가고 싶다(백준) (0) | 2024.06.04 |
| 2292 - 벌집(백준) (0) | 2024.05.31 |