20250516 baekjoon

This commit is contained in:
songyc debian 2025-05-16 18:45:20 +09:00
parent fd296537b8
commit 16a55112a8
12 changed files with 35 additions and 0 deletions

View File

@ -0,0 +1,2 @@
for i in range(int(input())):
print(sum(map(int, input().split())))

View File

@ -0,0 +1,5 @@
while True:
try:
print(sum(map(int,input().split())))
except:
break

View File

@ -0,0 +1,4 @@
while(True):
a, b = map(int, input().split())
if a==0 and b==0 : break
print(a+b)

View File

@ -0,0 +1,2 @@
for i in range(int(input())):
print("Case #"+str(i+1)+":",sum(map(int,input().split())))

View File

@ -0,0 +1,3 @@
for i in range(int(input())):
a,b = map(int,input().split())
print("Case #"+str(i+1)+":",a,"+",b,"=",a+b)

View File

@ -0,0 +1,3 @@
import sys
for i in range(int(sys.stdin.readline())):
sys.stdout.write(str(sum(map(int, sys.stdin.readline().split())))+"\n")

View File

@ -0,0 +1,2 @@
for i in range(int(input())):
print("*"*(i+1))

View File

@ -0,0 +1,3 @@
n = int(input())+1
for i in range(1,n):
print(" "*(n-i-1)+"*"*i)

View File

@ -0,0 +1,6 @@
x = int(input())
s = 0
for i in range(int(input())):
a, b = map(int, input().split())
s += a*b
print("Yes" if x==s else "No")

View File

@ -0,0 +1 @@
print("long "*(int(input())//4) + "int")

View File

@ -0,0 +1,2 @@
N = input()
for i in range(9) : print(N+" * "+str(i+1)+" = "+str(int(N)*(i+1)))

View File

@ -0,0 +1,2 @@
n = int(input())
print(n*(n+1)//2)