fragment-header
fragment-markdown
홈
로그인
로그아웃
내 블로그
설정
로그인
백준 34414 (C++) Tall Enough
최초 업로드: 2025-10-26 04:18:14
최근 수정 시간: 2025-10-26 04:19:52
게시자: rlatjwls3333
카테고리: 백준
조회수: 9
# [Bronze IV] Tall Enough [문제 링크](https://www.acmicpc.net/problem/34414) ## 문제 설명 <p>The new amusement park you've opened has a small problem: people are riding your roller coasters without meeting the safety requirements! Instead of hiring more employees to enforce the safety requirements, you decide to augment your coaster control system with a new safety check.</p> <p>The system you're creating will accept a list of heights in inches and will output "True" if all of the heights are greater than or equal to $48$ inches. If any of the heights are less than $48$ inches, it will output "False".</p> ## 입력 <p>The first line is $n$, an integer between $1$ and $1\,000$ inclusive, defining the number of heights you'll receive.</p> <p>The next $n$ lines will each contain a single height in inches. Each height will be an integer between $1$ and $1\,000$ inclusive.</p> ## 출력 <p>If any of the heights are less than $48$ then output "False" without the quotes. Otherwise, output "True" without the quotes.</p> ## 풀이 입력되는 N개의 수가 모두 48보다 작은지 확인하면 됩니다. ``` c++ #include<bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); int n; cin >> n; while(n--) { int h; cin >> h; if(h<48) { cout << "False"; return 0; } } cout << "True"; } ```