diff --git a/src/BaekJoon/SongSiWoon/1436/main.cpp b/src/BaekJoon/SongSiWoon/1436/main.cpp new file mode 100644 index 0000000..5b88d26 --- /dev/null +++ b/src/BaekJoon/SongSiWoon/1436/main.cpp @@ -0,0 +1,16 @@ +#include +#include +using namespace std; + +int main(){ + int N; + cin >> N; + int start = 665; + while (N > 0) { + start++; + if(to_string(start).find("666")!=string::npos) { + N--; + } + } + printf("%d", start); +}