20240607 Baekjoon

This commit is contained in:
송예찬 2024-06-07 19:10:05 +09:00
parent f161ac4b8a
commit 35fd93d00a
5 changed files with 15 additions and 0 deletions

2
Baekjoon/python/10950.py Normal file
View File

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

3
Baekjoon/python/15552.py Normal file
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")

7
Baekjoon/python/25304.py Normal file
View File

@ -0,0 +1,7 @@
X = int(input())
Y = 0
for i in range(int(input())):
A, B = map(int,input().split())
Y += A*B
if X==Y : print("Yes")
else : print("No")

1
Baekjoon/python/25314.py Normal file
View File

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

2
Baekjoon/python/8393.py Normal file
View File

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