Skip to content

Commit 01ea0e4

Browse files
committed
백준 1330번 두 수 비교하기
문제 링크: https://www.acmicpc.net/problem/1330
1 parent df14cfa commit 01ea0e4

File tree

3 files changed

+29
-0
lines changed

3 files changed

+29
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
def solve():
2+
n1, n2 = input().split(' ')
3+
n1, n2 = int(n1), int(n2)
4+
if n1 < n2:
5+
print('<')
6+
elif n1 > n2:
7+
print('>')
8+
else:
9+
print('==')
10+
11+
12+
if __name__ == '__main__':
13+
solve()
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
1 2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
import sys
2+
from pathlib import Path
3+
from unittest import TestCase
4+
from main import solve
5+
6+
7+
class Test(TestCase):
8+
def test1_solve(self):
9+
sys.stdin = open('test1.txt', 'r')
10+
stdout = sys.stdout
11+
sys.stdout = open('stdout.txt', 'w')
12+
solve()
13+
sys.stdout.close()
14+
sys.stdout = stdout
15+
self.assertEqual('<', Path('stdout.txt').read_text().strip())

0 commit comments

Comments
 (0)