https://www.acmicpc.net/problem/4101
4101번: 크냐?
입력은 여러 개의 테스트 케이스로 이루어져 있다. 각 테스트 케이스는 한 줄로 이루어져 있으며, 두 정수가 주어진다. 두 수는 백만보다 작거나 같은 양의 정수이다. 입력의 마지막 줄에는 0이
www.acmicpc.net
풀이 :
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
cin.tie(NULL);
ios::sync_with_stdio(false);
int a, b;
while(cin >> a >> b && a != 0 && b != 0){
if(a > b){
cout << "Yes\n";
}else{
cout << "No\n";
}
}
}
'PS_Baekjoon' 카테고리의 다른 글
[백준 C++] 1264번 : 모음의 개수 (0) | 2023.04.23 |
---|---|
[백준 C++] 5339번 : 콜센터 (0) | 2023.04.22 |
[백준 C++] 8370번 : Plane (0) | 2023.04.20 |
[백준 C++] 7891번 : Can you add this? (0) | 2023.04.19 |
[백준 C++] 27323번 : 직사각형 (1) | 2023.04.18 |