Skip to content

Commit

Permalink
[#3] 2021.12.14 백준단계별3. for문
Browse files Browse the repository at this point in the history
  • Loading branch information
hyesuuou committed Dec 14, 2021
1 parent 48bf960 commit 03968b4
Show file tree
Hide file tree
Showing 11 changed files with 58 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Boj/for문/10871.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
n, x = map(int, input().split())
number = list(map(int, input().split()))

for i in range(0, n):
if number[i] < x:
print(number[i], end= " ")
7 changes: 7 additions & 0 deletions Boj/for문/10950.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
n = int(input())

for i in range(0, n):
a, b = input().split()
a = int(a)
b = int(b)
print(a+b)
5 changes: 5 additions & 0 deletions Boj/for문/11021.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
n = int(input())

for i in range(1, n+1):
a, b = map(int, input().split())
print("Case #%d: %d" %(i, a+b))
5 changes: 5 additions & 0 deletions Boj/for문/11022.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
T = int(input())

for i in range(1, T+1):
a, b = map(int, input().split())
print("Case #%d: %d + %d = %d" %(i, a, b, a+b))
8 changes: 8 additions & 0 deletions Boj/for문/15552.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import sys
input = sys.stdin.readline

n = int(input())

for i in range(0, n):
a, b = map(int, input().split())
print(a+b)
4 changes: 4 additions & 0 deletions Boj/for문/2438.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)
4 changes: 4 additions & 0 deletions Boj/for문/2439.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(" "*(N-i) + "*"*i)
4 changes: 4 additions & 0 deletions Boj/for문/2739.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
n = int(input())

for i in range(1, 10):
print(n, "*", i, "=", n*i)
4 changes: 4 additions & 0 deletions Boj/for문/2741.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)
4 changes: 4 additions & 0 deletions Boj/for문/2742.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
n = int(input())

for i in range(n, 0, -1):
print(i)
7 changes: 7 additions & 0 deletions Boj/for문/8393.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
n = int(input())

for i in range(0, n):
a, b = input().split()
a = int(a)
b = int(b)
print(a+b)

0 comments on commit 03968b4

Please sign in to comment.