Skip to content

Commit

Permalink
Feat: Add solution of #118
Browse files Browse the repository at this point in the history
  • Loading branch information
SongSiWoon committed Jul 9, 2022
1 parent d81e3a7 commit 32e90c7
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/BaekJoon/SongSiWoon/1436/main.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
#include <iostream>
#include <string>
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);
}

0 comments on commit 32e90c7

Please sign in to comment.