using System;
using System.Numerics;
class Program {
static void Main(string[] args) {
string stringNumber = Console.ReadLine();
int number = int.Parse(stringNumber);
for (int i = 0; i < number; i++) {
string stringPassword = Console.ReadLine();
if (5 < stringPassword.Length && stringPassword.Length < 10) {
Console.WriteLine("yes");
} else {
Console.WriteLine("no");
}
}
}
}
문제 출처
https://www.acmicpc.net/problem/25372
25372번: 성택이의 은밀한 비밀번호
부산사이버대학교 학생 성택이는 엄마의 의뢰를 받아 주어진 문자열이 현관문 비밀번호에 사용 가능한지 알아내야 한다. 성택이는 공부해야 하므로 우리가 도와주자! 사용할 수 있는 비밀번호
www.acmicpc.net
'ComputerScience > Coding Test' 카테고리의 다른 글
C# 백준 10872번: 팩토리얼 (0) | 2022.11.20 |
---|---|
C# 백준 5522번: 카드 게임 (0) | 2022.11.20 |
C# 백준 2338번: 긴자리 계산 (2) | 2022.11.19 |
C# 백준 1271번: 엄청난 부자2 (0) | 2022.11.19 |
C# 백준 10757번: 큰 수 A + B (0) | 2022.11.19 |