반응형
SMALL
문제
풀이
using System;
using System.IO;
namespace BOJ01
{
class Program
{
static void Main(string[] args)
{
StreamReader sr = new StreamReader(Console.OpenStandardInput());
StreamWriter sw = new StreamWriter(Console.OpenStandardOutput());
int N = int.Parse(sr.ReadLine());
int movie = 666;
while(N != 0)
{
if (movie.ToString().Contains("666"))
{
N -= 1;
if (N == 0) break;
}
movie++;
}
sw.WriteLine(movie);
sr.Close();
sw.Flush();
sw.Close();
}
}
}
결과창
반응형
LIST
'Algorithm > BOJ' 카테고리의 다른 글
[BOJ] 2775번 부녀회장이 될테야 C# 사용 풀이 (0) | 2023.01.26 |
---|---|
[BOJ] 10989번 수 정렬하기 3 C# 사용 못풀이 (해결) (2) | 2023.01.26 |
[BOJ] 2869번 달팽이는 올라가고 싶다. C#사용 풀이 (0) | 2023.01.25 |
[BOJ] 9012 괄호 (0) | 2023.01.24 |
[프로그래머스] 전화번호 목록 C# 풀이 (0) | 2023.01.24 |