Notice
Recent Posts
Recent Comments
Link
«   2026/06   »
1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30
Archives
Today
Total
관리 메뉴

dh-winternagi 님의 블로그

(1330) 두 수 비교하기 본문

백준 (C++)/Solve

(1330) 두 수 비교하기

dh-winternagi 2026. 4. 7. 18:45

https://www.acmicpc.net/problem/1330

단계별로 풀어보기

2단계(조건문) 1번째

 

 

 

#include <iostream>
using namespace std;

int main() 
{
  int a, b;
  
  cin >> a >> b;
  
  if(a>b)  cout << ">";
  else if(a<b)  cout << "<";
  else  cout << "==";
  
  return 0;
}

'백준 (C++) > Solve' 카테고리의 다른 글

(2753) 윤년  (0) 2026.04.07
(9498) 시험 성적  (0) 2026.04.07
(10172) 개  (0) 2026.04.07
(10171) 고양이  (0) 2026.04.07
(11382) 꼬마 정민  (0) 2026.04.07