문제 링크입니다: https://www.acmicpc.net/problem/4101
4101번: 크냐?
입력은 여러 개의 테스트 케이스로 이루어져 있다. 각 테스트 케이스는 한 줄로 이루어져 있으며, 두 정수가 주어진다. 두 수는 백만보다 작거나 같은 양의 정수이다. 입력의 마지막 줄에는 0이
www.acmicpc.net
간단한 구현 문제였습니다.
This file contains 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; | |
int main(void) | |
{ | |
ios_base::sync_with_stdio(0); | |
cin.tie(0); | |
while (1) | |
{ | |
int a, b; | |
cin >> a >> b; | |
if (a == 0 && b == 0) | |
{ | |
break; | |
} | |
cout << (a > b ? "Yes" : "No") << "\n"; | |
} | |
return 0; | |
} |


개발환경:Visual Studio 2017
지적, 조언, 질문 환영입니다! 댓글 남겨주세요~
반응형
'알고리즘 > BOJ' 카테고리의 다른 글
백준 4388번 받아올림 (0) | 2021.05.15 |
---|---|
백준 4153번 직각삼각형 (0) | 2021.05.15 |
백준 4084번 Viva la Diferencia (0) | 2021.05.15 |
백준 3533번 Explicit Formula (0) | 2021.05.15 |
백준 3507번 Automated Telephone Exchange (0) | 2021.05.15 |