Skip to content

Commit

Permalink
기초문제 풀기
Browse files Browse the repository at this point in the history
  • Loading branch information
sunyeongchoi committed Feb 7, 2021
1 parent eb540c2 commit 49046e3
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 0 deletions.
8 changes: 8 additions & 0 deletions argorithm/comparing_two_number.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys
input = sys.stdin.readline

A, B = map(int, input().split())

if A>B: print('>')
elif A<B: print('<')
else: print('==')
7 changes: 7 additions & 0 deletions argorithm/maximum_value.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import sys
input = sys.stdin.readline

arr = list(int(input()) for _ in range(9))

print(max(arr))
print(arr.index(max(arr))+1)
4 changes: 4 additions & 0 deletions argorithm/star.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
N = int(input())

for i in range(1, N+1):
print("*"*i)

0 comments on commit 49046e3

Please sign in to comment.