์ ๋ต์จ ๋์ ๋ฌธ์ ํ์ด๋ค
3314. ๋ณด์ถฉํ์ต๊ณผ ํ๊ท
T = int(input())
for t in range(1, T + 1):
arr = list(map(int,input().split()))
res = []
for x in arr:
if x < 40 :
res.append(40)
else:
res.append(x)
print("#"+str(t) , sum(res)//5 )
9700. USB ๊ฝ๊ธฐ์ ๋ฏธ์คํฐ๋ฆฌ
T = int(input())
for t in range(1,T+1):
p,q = map(float,input().split())
s1 = (1-p) * q
s2 = p*(1-q)*q
if s1 < s2:
res = "YES"
else:
res = "NO"
print("#"+str(t) , res )
5549. ํ์์ผ๊น ์ง์์ผ๊น
T = int(input())
for t in range(1, T + 1):
a = int(input())
if a%2 == 0:
res = "Even"
else:
res = "Odd"
print("#"+str(t) , res )
4466. ์ต๋ ์ฑ์ ํ ๋ง๋ค๊ธฐ
T = int(input())
for t in range(1, T + 1):
n,k = map(int,input().split())
arr = list(map(int,input().split()))
arr.sort(reverse=True)
print("#"+str(t) , sum(arr[:k]) )
13229. ์ผ์์ผ
arr = {"MON" : 6 , "TUE" : 5 , "WED" : 4 , "THU" : 3 , "FRI" : 2 , "SAT" : 1 , "SUN" : 7 }
T = int(input())
for t in range(1, T + 1):
day = input()
print("#"+str(t) , arr[day] )
5601. [Professional] ์ฅฌ์ค ๋๋๊ธฐ
T = int(input())
for t in range(1, T + 1):
n = int(input())
print("#"+str(t) , end=" ")
for _ in range(n):
print("1/"+str(n) , end= " ")
print()
15941. ํํ์ฌ๋ณํ
T = int(input())
for t in range(1, T + 1):
n = int(input())
print("#"+str(t) , n**2 )
'Algorithm > SWEA' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
[SWEA - D3] 1954. ๋ฌํฝ์ด ์ซ์ (0) | 2023.05.16 |
---|---|
[SWEA - D3] 5215. ํ๋ฒ๊ฑฐ ๋ค์ด์ดํธ (0) | 2023.05.10 |
[SWEA - D3] 5431. ๋ฏผ์์ด์ ๊ณผ์ ์ฒดํฌํ๊ธฐ (0) | 2023.05.09 |
[SWEA - D3] 2805. ๋์๋ฌผ ์ํํ๊ธฐ (0) | 2023.05.09 |
[SWEA - D3] 1209. Sum (0) | 2023.05.08 |