문제 링크입니다: www.acmicpc.net/problem/19944
19944번: 뉴비의 기준은 뭘까?
2020 INPC는 IGRUS 뉴비들을 위해 열리는 대회입니다. 하지만 영수 할아버지나 인용 할아버지와 같이 14학번이지만 마음만은 뉴비인 어르신들 때문에 대회장이 TLE들의 파티가 되자 뉴비의 기준을 정
www.acmicpc.net
간단한 구현 문제였습니다.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <iostream> | |
using namespace std; | |
const int NEWBIE = 2; | |
int main(void) | |
{ | |
ios_base::sync_with_stdio(0); | |
cin.tie(0); | |
int N, M; | |
cin >> N >> M; | |
if (M <= NEWBIE) | |
{ | |
cout << "NEWBIE!\n"; | |
} | |
else if (M <= N) | |
{ | |
cout << "OLDBIE!\n"; | |
} | |
else | |
{ | |
cout << "TLE!\n"; | |
} | |
return 0; | |
} |


개발환경:Visual Studio 2017
지적, 조언, 질문 환영입니다! 댓글 남겨주세요~
반응형
'알고리즘 > BOJ' 카테고리의 다른 글
백준 20232번 Archivist (0) | 2021.03.29 |
---|---|
백준 20215번 Cutting Corners (0) | 2021.03.29 |
백준 5103번 DVDs (0) | 2021.03.28 |
백준 5102번 Sarah's Toys (0) | 2021.03.28 |
백준 19698번 헛간 청약 (0) | 2021.03.27 |