โ 2480 - ์ฃผ์ฌ์ ์ธ๊ฐ โ
try:
a,b,c = map(int, input().split(' '))
if (a<1 or a >6) or (b<1 or b>6) or (c<1 or c >6):
raise Exception('1๋ถํฐ 6๊น์ง์ ์์ฐ์๋ง ์
๋ ฅํ์ธ์')
elif a == b == c:
ans = 10000 + a*1000
elif a == b != c or a != b == c:
ans = 1000 + 100*b
elif a == c!= b:
ans = 1000 + 100*a
else:
ans = 100*max(a,b,c)
print(ans)
except Exception as e:
print(e)
โ 14681 - ์ฌ๋ถ๋ฉด ๊ณ ๋ฅด๊ธฐ โ
try:
x = int(input())
y = int(input())
if (x == 0 or x < -1000 or 1000 < x) or (y == 0 or y < -1000 or 1000 < y):
raise Exception('x์ y๋ชจ๋ -1000์ด์ 1000์ดํ์ ์์ฐ์๋ง ์
๋ ฅํ์ธ์')
elif x > 0 and y > 0:
print('1')
elif x < 0 and y > 0:
print('2')
elif x < 0 and y < 0:
print('3')
else:
print('4')
except Exception as e:
print(e)
โ 2884 - ์๋ ์๊ณ โ
H, M = map(int,input().split())
total = 60 * H + M
cur = total - 45
if cur < 0:
cur = 24*60 - abs(cur)
print(cur//60,cur%60)
๐ค๐พ ์๊ฐ ๊ด๋ จ ์ฝ๋ ์์ฑ ์, ์/๋ถ/์ด๋ฅผ ์์ ๋จ์๋ก ๋ชจ๋ ๋ฐ๊พธ์ด ์ฐ์ฐ์ด ๊ฐ๋จํ๊ณ ๋น ๋ฅด๋ค
โ 9498 - ์ํ ์ฑ์ โ
score = int(input())
if 90 <= score <= 100:
print('A')
elif 80 <= score <= 89:
print('B')
elif 70 <= score <= 79:
print('C')
elif 60 <= score <= 69:
print('D')
else:
print('F')
โ 2753 - ์ค๋ โ
#๋ฐฑ์ค 2753
#๋ธ๋ก ์ฆV
year = int(input())
if (year%4 == 0) and ((year%100 != 0) or (year%400 == 0)):
print(1)
else:
print(0)
๐ค๐พ ์ค๋ ์กฐ๊ฑด๋ง ์ ํํ ์๋ฉด ๋จ!
โ 2754 - ํ์ ๊ณ์ฐ โ
grade = input()
alphas = 'FDCBA'
ans = alphas.find(grade[0])
if grade[-1] == '+':
ans += 0.3
elif grade[-1] == '-':
ans -= 0.3
else:
pass
print(f'{ans:.1f}')
๐ if๋ฌธ์ ์ฌ๋ฌ ๊ฐ ์ฐ๋ฉด์ ๊ฐ๋จํ ํ ์ ์์ง๋ง, ํ์ ์ด +, -, 0์ ๋๋๋ ์ง์ ๋ฐ๋ฅธ ๊ท์น์ ๋ฐ๊ฒฌํ๊ณ ํด๋น if๋ฌธ์ ์ธ์ ๋ค. ๋ฌธ์์ด FDCBA๋ฅผ ๋ง๋ค์ด find()๋ฅผ ์ด์ฉํด index๋ฅผ ํด๋น ์ ์๋ผ ์ค์ ํ๊ณ , ๋ง์ฝ Fํ์ ์ผ ๊ฒฝ์ฐ +, -, 0์ ํด๋น๋์ง ์์ผ๋ฏ๋ก else๋ฌธ์ pass๋ฅผ ๋ฃ์ด ๋๊ธฐ๊ฒ ๋ง๋ฆ. pass๋ฌธ์ ์ค์์ฑ! → ๋ง์ฝ pass๋ฌธ์ด ์์๋๋ผ๋ฉด +๋ - ์ค ํ ๊ณณ์ ๊ฑธ๋ ค ์๋ชป๋ ์ฐ์ฐ์ ํ๊ฒ ๋ ๊ฒ์ด๋ค. pass๋ฌธ์ ์ด์ฉํด ์๋ฌด๋ฐ ์ฐ์ฐ๋ ํ์ง ์์์ ๋ฐ๋์ ๋ช ์ํด์ค์ผ ํ๋ ๊ฒฝ์ฐ pass๊ฐ ์ ์ฉํ๊ฒ ์ฌ์ฉ๋๋ค๋ ์ ! ์ฐพ์ผ๋ ค๊ณ ํ๋ ์ฌ๋ฌ ํ๋ณด๋ค์ด ๋ชจ์ธ ๋ฌธ์๋ฅผ ํ๋์ ๋ฌธ์์ด๋ก ๋ง๋ค๊ณ for๋ฌธ์ด๋ find()๋ฅผ ํตํด iterateํ๋ ๊ฒฝ์ฐ ๋ง์ → ์๋ฅผ ๋ค์ด a๋ถํฐ z๊น์ง ์ฐจ๋ก๋ก ์ฐพ์ ๋ ํ ๊ฐ์ ๋ฌธ์์ด์ abcd~z๊น์ง ๋ง๋ค์ด for๋ฌธ์ผ๋ก ๋๋ฆด ์ ์์ → iterateํ๋ ๋ฐฉ๋ฒ์ for๋ฌธ์ด ์๋๋ผ, ์ ์ฒ๋ผ find() ํจ์๋ฅผ ์ด์ฉํด์๋ ๊ฐ๋ฅ
โ 5928 - Contest Timing โ
D,H,M = map(int, input().split())
if D == 11:
if H <= 10 or (H==11 and M < 11):
print(-1)
elif H == 11:
print(M-11)
else:
print((H-12)*60 + M + 49)
else:
print(769 + (D-12)*1440 + H*60 + M)
๐ ๋ฌธ์ ๋ง ์ ์ดํดํ๋ฉด ํ ์ ์๋ ๋จ์ if๋ฌธ ๋ฌธ์
๐ ๋ค๋ฅธ code> ๋ชจ๋ ์๊ฐ์ ๋ชจ์กฐ๋ฆฌ ๋ถ์ผ๋ก ๋ฐ๊พธ์ด ๋จ์ ์ฌ์น์ฐ์ฐ ๋ฌธ์ ๋ก ๋ฐ๊ฟ ์ ์์
D, H, M = map(int, input().split())
t1 = D*24*60 + H*60 + M
t2 = 11*24*60 + 11*60 + 11
t = t1 - t2
if t < 0:
print(-1)
else:
print(t)
โ 10101 - ์ผ๊ฐํ ์ธ์ฐ๊ธฐ โ
a=int(input())
b=int(input())
c=int(input())
if (a,b,c) == (60,60,60):
print('Equilateral')
elif a+b+c == 180:
if a==b or b==c or a==c:
print('Isosceles')
else:
print('Scalene')
else:
print('Error')
โ 2083 - ๋ญ๋น ํด๋ฝ โ
while True:
info = list(input().split())
if info == ['#', '0', '0']:
break
if int(info[1]) > 17 or int(info[2]) >= 80:
print(info[0], 'Senior')
else:
print(info[0], 'Junior')
โ 10768 - ํน๋ณํ ๋ โ
M = int(input())
D = int(input())
print('Before') if M == 1 or (M ==2 and D < 18) else print('Special') if M == 2 and D == 18 else print('After')
โ 6763 - Speed fines are not fine! โ
limit = int(input())
speed = int(input())
diff = speed - limit
fine = 0
if diff <= 0:
print('Congratulations, you are within the speed limit!')
elif diff <= 20:
fine = 100
print(f'You are speeding and your fine is ${fine}.')
elif diff <= 30:
fine = 270
print(f'You are speeding and your fine is ${fine}.')
else:
fine = 500
print(f'You are speeding and your fine is ${fine}.')
โ 5063 - TGN โ
for _ in range(int(input())):
r,e,c = map(int, input().split())
print('advertise') if (e-c) > r else print('do not advertise') if (e-c) < r else print('does not matter')
๐ ๊ด๊ณ ํ์ ๋์ ์์ต e - ๊ด๊ณ ๋น์ฉ c๋งํผ์ ๋น์ฉ (e-c)์ด ๊ด๊ณ ํ์ ๋์ ์์ต์ด๊ณ , r์ ๊ด๊ณ ๋ฅผ ํ์ง ์์์ ๋์ ์์ต. ๋ฐ๋ผ์ ๊ด๊ณ ํ์ ๋์ ์์ต e - c๊ฐ r๋ณด๋ค ํฌ๋ฉด ๊ด๊ณ ๋ฅผ ํ๊ณ , r๋ณด๋ค ์์ผ๋ฉด ํ์ง ๋ง๊ณ , ์๋ก ๊ฐ์ผ๋ฉด ์๊ด์๋ค๋ ์ธ ๊ฐ์ if ๋ถ๊ธฐ๋ฅผ ์์ฑ!
โ 6778 - Which Alien? โ
antennas = int(input())
eyes = int(input())
cond1 = antennas >= 3 and eyes <= 4
cond2 = antennas <=6 and eyes >= 2
cond3 = antennas <= 2 and eyes <= 3
if cond1:
print('TroyMartian')
if cond2:
print('VladSaturnian')
if cond3:
print('GraemeMercurian')
๐ if๋ฌธ์ ์ฌ condition ์์ฒด๋ฅผ ๋ฐ๋ก ๋ง๋ค์ด์ ์๋์ฒ๋ผ ์ฝ๊ฒ if ๋ค์์ condition ๋ณ์๋ง ์ค๊ฒ ์ฝ๋ฉ์ ์งค ์ ์๋ค.
โ 11257 - IT Passport Examination โ
for _ in range(int(input())):
number, st, ma, te = map(int,input().split())
st_cut = 35*0.3
ma_cut = 25*0.3
te_cut = 40*0.3
total = st + ma + te
if total >= 55 and st >= st_cut and ma >= ma_cut and te >= te_cut:
print(number, total, 'PASS', sep= ' ')
else:
print(number, total, 'FAIL', sep= ' ')
โ 22155 - ะัะพััะฐั ะทะฐะดะฐัะฐโ
for _ in range(int(input())):
i,f=map(int,input().split())
print('Yes') if (i<=1 and f<=2) or (i<=2 and f<=1) else print('No')
โ 13580 - Andando no tempo โ
A,B,C=map(int,input().split())
possible = [A+B-C,A-B+C,A-B-C,-A+B+C,-A+B-C,-A-B+C,-A+B,A-B,-A+C,A-C,-B+C,B-C]
print('S') if 0 in possible else print('N')
๐ ๋ชจ๋ ๊ฒฝ์ฐ์ ์๋ฅผ ์๊ฐํด list์ ๋ฃ์ด์ ์ํ๋ ๊ฐ์ธ 0์ด ๋ค์ด์์ผ๋ฉด ๋ต์ด ๋๋ค. ํ์ง๋ง, ์ข ๋ ๊ฐ๋จํ๊ฒ 0์ด ๋ ์ ์๋ ๊ฐ๋จ ์ผ์ด์ค 2๊ฐ์ง๋ง if๋ฌธ์ผ๋ก ์์ฑํด์ ์ฝ๊ฒ ํ ์ ์์. → ์ธ ์ ์ค ๋ ๊ฐ์ ์๊ฐ ์๋ก ๊ฐ์ ๊ฒฝ์ฐ / → ๋๋ ์ต์๊ฐ๊ณผ ๊ทธ ๋ค์ ์ค๊ฐ๊ฐ์ ํฉํ ๊ฐ์ด ์ต๋๊ฐ์ด ๋๋ ๊ฒฝ์ฐ / โป ๊ทธ ์ธ๋ ๋ฌธ์ ์์ฑ ๋น์ ์์ 2016๋ ์ผ๋ก ๋๋์๊ฐ๋ ๊ฒฝ์ฐ๊ฐ ์๋ค!
lst = sorted(list(map(int,input().split())))
print('S') if (lst[0] == lst[1]) or (lst[1] == lst[2]) or (lst[0] + lst[1] == lst[2]) else print('N')
โ 15873 - ๊ณต๋ฐฑ ์๋ A+B โ
AB = input()
if len(AB) == 2:
print(int(AB[0])+int(AB[1]))
elif len(AB) == 4:
print(20)
else:
if AB[1] == '0':
print(10+int(AB[2]))
else:
print(int(AB[0])+10)
๐ ๋ฌธ์ ๋ฅผ ์ ์ดํดํ๊ณ 10์ด ์๋ก ๋ค์ด๊ฐ ๋๋ง ์ ์๊ฐํด ์๋ง๋ ๋ถ๊ธฐ๋ค์ ๋ง๊ฒ ์ฝ๋๋ฅผ ์ง๋ฉด ๋๋ค / * ์๋์ ๊ฐ์ ํ์ด๋ ๊ฐ๋ฅ - slicing์ ์ด์ฉํด ๋ ๋ฒ์งธ ์ซ์๊ฐ 0์ธ ์ง ์๋ ์ง์ ๊ธฐ์ค์ผ๋ก ์งฐ๋ค.
AB = input()
print(10+int(AB[2:])) if AB[1] == '0' else print(int(AB[0])+int(AB[1:]))
โ 14038 - Tournament Selection โ
c = [input() for _ in range(6)].count('W')
print(1) if c in [5,6] else print(2) if c in [3,4] else print(3) if c in [1,2] else print(-1)
โ 17362 - ์ํ์ ์ฒด์ก๊ณผ๋ชฉ์ ๋๋ค 2 โ
n = int(input())
if (n-1)%8 == 0:
print(1)
elif (n-2)% 8 == 0 or n%8 == 0:
print(2)
elif (n-3)%8 == 0 or (n-7)%8 == 0:
print(3)
elif (n-4)%8 == 0 or (n-6)%8 == 0:
print(4)
else:
print(5)
๐ ๋ฑ์ฐจ์์ด๋ก ๊ท์น์ด ๋์ด์ ์ดํดํ๊ณ , 8์ ๋๋ ๋๋จธ์ง์ ๋ง๊ฒ ์ฌ๋ฌ ์ํฉ์ if๋ฌธ์ผ๋ก ๋ง๋ค๋ฉด ๋!
โ 19944 - ๋ด๋น์ ๊ธฐ์ค์ ๋ญ๊น? โ
N,M=map(int,input().split())
if M in [1,2]:
print('NEWBIE!')
elif 3 <= M <= N:
print('OLDBIE!')
else:
print('TLE!')
โ 13623 - Zero or One โ
i = list(input().split())
if len(set(i)) == 2:
if i[0] == i[1]:
print('C')
elif i[0] == i[2]:
print('B')
else:
print('A')
else:
print('*')
โ 17388 - ์๊ธ์๊ธ ์ญ๊ณ ํ โ
S,K,H=map(int,input().split())
if S+K+H >= 100:
print('OK')
else:
t = min(S,K,H)
print('Soongsil') if S == t else print('Korea') if K == t else print('Hanyang')
โ 17009 - Winning Score โ
Apples = [int(input()) for _ in range(3)]
Bananas = [int(input()) for _ in range(3)]
A_Score = Apples[0]*3 + Apples[1]*2 + Apples[2]
B_Score = Bananas[0]*3 + Bananas[1]*2 + Bananas[2]
print('A') if A_Score > B_Score else print('B') if A_Score < B_Score else print('T')
๐ if๋ฌธ์ ํตํด์ ๊ฐ ํ์ ํฉ์ฐ๋ ํฌ์ธํธ์ ๋ฐ๋ผ ๊ฒฐ๊ณผ๋ฅผ ์ถ๋ ฅํ๊ฒ ํ ์ ์๋ค.
โ 20499 - Darius๋ ํํ ์ ํจ? โ
K,D,A=map(int,input().split('/'))
print('hasu') if D == 0 or (K+A)<D else print('gosu')
๐ ๊ฐ ์ซ์๊ฐ /์ ๊ธฐ์ค์ผ๋ก ๊ตฌ๋ถ๋๋ฏ๋ก, split์ ์ธ์๋ก '/'์ ๋ฃ์ด์ผ ์๋ง๋ค.
โ 15025 - Judging Moose โ
l,r=map(int,input().split())
if (l,r) == (0,0):
print('Not a moose')
elif l == r:
print(f'Even {2*l}')
else:
print(f'Odd {max(l,r)*2}')
๐ ์ ์ชฝ tine ๊ฐ์์ ๋ฐ๋ผ bull moose์ tine ์ํ๋ฅผ ์กฐ๊ฑด๋ณ๋ก ์ถ๋ ฅํด์ฃผ๋ ๋ฌธ์ !
โ 24072 - ๅธฐ็ (Homecoming) โ
A,B,C=map(int,input().split())
if A <= C <= B-1:
print(1)
else:
print(0)
๐ 2์ผ๋ถํฐ 5์ผ ์ค์ ๊น์ง ์๋ค๋ฉด ๋ค๋ฅธ ๊ณ ์์ด๋ 2์ผ๋ถํฐ 4์ผ๊น์ง ์คํ์ ์์ผ ๋ฐ๊ธธ ์ ์๋ค. N ~ M-1๊น์ง
โ 14489 - ์นํจ ๋ ๋ง๋ฆฌ (...) โ
A,B=map(int,input().split())
C=int(input())
print(A+B-C*2) if A+B >= C*2 else print(A+B)
โ 14470 - ์ ์๋ ์ธ์ง โ
temps=[int(input()) for _ in range(5)]
if temps[0] < 0:
print(abs(temps[0])*temps[2] + temps[3] + temps[1]*temps[4])
elif temps[0] == 0:
print(temps[3] + temps[1]*temps[4])
else:
print((temps[1]-temps[0])*temps[4])
โ 24079 - ็งปๅ (Moving) โ
l = [int(input()) for _ in range(3)]
if (l[0] + l[1]) <= (l[2] + 0.5):
print(1)
else:
print(0)
๐ X์๊ฐ + Y์๊ฐ ๋ค Z์๊ฐ 30๋ถ ๋ด์ ๋์ฐฉํ๋ฉด ๋จ!
โ 2438 ๋ณ ์ฐ๊ธฐ - 1 โ
for i in range(1,int(input())+1):
print('*'*i)
โ 2439 ๋ณ ์ฐ๊ธฐ - 2 โ
N = int(input())
for i in range(1,N+1):
print(' '*(N-i) + '*'*i)
โ 2742 ๊ธฐ ์ฐ N โ
for i in range(0,int(input())):
print(N-i)
๐คก ๋๋ range()์ ์ธ๋ฒ์งธ ์ธ์๋ฅผ ์ฌ์ฉํด ์๋์ ๊ฐ์ด ์ฝ๋ฉ๋ ๊ฐ๋ฅ
for i in range(int(input()), 0, -1):
print(i)
๐คก reversed() ๊ฐ๋ฅ
for i in range(reversed(range(1,int(input())))):
print(i)
โ 2739 ๊ตฌ๊ตฌ๋จ โ
N = int(input())
for i in range(9):
print(f'{N} * {i+1} = {N*(i+1)}')
โ 11365 !๋ฐ๋น ๊ธ์ผ โ
while 1:
sentence = input()
if sentence == 'END':
break
print(sentence[::-1])
โ 2440 ๋ณ ์ฐ๊ธฐ - 3 โ
for i in range(int(input()), 0, -1):
print('*'*i)
โ 2441 ๋ณ ์ฐ๊ธฐ - 4 โ
N = int(input())
for i in range(N, 0, -1):
print(' '*(N-i) + '*'*i)
โ 2741 N ์ฐ๊ธฐ โ
for i in range(int(input())):
print(i+1)
โ 10871 X๋ณด๋ค ์์ ์ โ
N, X = map(int, input().split())
numbers = list(map(int, input(). split()))
for i in numbers:
if i < X:
print(i, end = ' ')
๐ฉ๐จ end๋ก ๊ณต๋ฐฑ ๊ตฌ๋ถ (end = ' ')
<80ms ์ฝ๋>
N, X = map(int, input().split())
numbers = list(map(int, input(). split()))
for i in range(len(numbers)):
if numbers[i] < X:
print(numbers[i], end = ' ')
๐ฉ๐จ for๋ฌธ์ list ์์ฒด๋ฅผ ๋๋ฆฌ๋ ๊ฒ๋ณด๋ค, ์ฃผ์ด์ง ์์ฐ์๋ค์ range()๋ฌธ์ ๋๋ฆฌ๋ ๊ฒ ์๊ฐ, ๋ฉ๋ชจ๋ฆฌ ๋ชจ๋ ํจ์จ์ ์ด๋ผ๋ ๊ฒ ์ ์ ์์! ์กฐ๊ฑด์ ๋ง์ผ๋ฉด ํด๋น index์ list ์์๋ง ๊ฐ์ ธ์ค๊ฒ ํ๋ฉด ๋๋ฏ๋ก, ๋ ๊ฐ๋จ!
โ 10797 10๋ถ์ โ
N = int(input())
lst = list(map(int, input().split()))
cnt = 0
for n in lst:
if N == n:
cnt += 1
print(cnt)
๐ฉ๐จ ๋๋ count() method๋ ๊ฐ๋ฅ
N = int(input())
lst = list(map(int, input().split()))
print(lst.count(N))
#--------------
N = input()
lst = input().split()
print(lst.count(N))
โ 2577 ์ซ์์ ๊ฐ์ โ
mul = 1
for _ in range(3):
mul *= int(input())
numbers = '0123456789'
for number in numbers:
ans = 0
for ch in str(mul):
if ch == number:
ans += 1
print(ans)
๐ฉ๐จ 0๋ถํฐ 9๊น์ง for๋ฌธ์ ๋๋ฉด์ ๊ฐ ์ซ์์ ๋น๋๋ฅผ ๊ณ์ ๋ํด์ฃผ๋ฉด์ ์ถ๋ ฅํ๋ฉด ๋!
โ 15232 Rectangles โ
R=int(input())
C=int(input())
for _ in range(R):
print('*'*C)
โ 25640 MBTI โ
jinho = input()
t = 0
for _ in range(int(input())):
if jinho == input():
t += 1
print(t)
โ 23795 ์ฌ์ฅ๋ ๋๋ฐ์ ์ฌ๋ฏธ๋ก ํ์ ์ผ ํฉ๋๋ค โ
ans = 0
while 1:
N = int(input())
if N != -1:
ans += N
else:
break
print(ans)
๐ฉ๐จ -1์ ๋ ฅํ๋ฉด break๋ฌธ์ผ๋ก while๋ฌธ ํ์ถ! ์๋ ๊ฒฝ์ฐ ๊ณ์ ๋ํด์ ธ์ ๋ต ์ถ๋ ฅ
โ 7595 Triangles โ
while 1:
n = int(input())
if n == 0: break
for i in range(n):
print('*'*(i+1))
โ 25703 ํฌ์ธํฐ ๊ณต๋ถ โ
N = int(input())
print('int a;')
i = 0
while i < N:
if i == 0:
print('int ','*', 'ptr', ' = &a;',sep='')
elif i == 1:
print('int ','**'*i, 'ptr2', ' = &ptr;',sep='')
else:
print('int ','*'*(i+1), 'ptr',f'{i+1}', ' = &ptr',f'{i}',';',sep='')
i+=1
โ 14935 FA โ
def print_F(num):
return int(str(num)[0])*len(str(num))
x = input()
while 1:
if print_F(x) == x:
print('FA')
break
x = print_F(x)
๐ฉ๐จ ์ด๋ค ์๋ ๋ฌด์กฐ๊ฑด FA๋ก ๋์ค๊ฒ ๋๋ค. while๋ฌธ์ ํตํด F(x)์ ๊ฒฐ๊ณผ๊ฐ ๊ฐ์์ง ๋๊น์ง ๋ฌดํ ๋ฐ๋ณต while loop์ ๋๋ ธ๋ค. ํ ๋น ์ฝ๋๊น์ง ์ฝ๋ ์ฃผ์ํ์!
โ 25965 ๋ฏธ์ ๋๋ค์ด์ โ
import sys
input = sys.stdin.readline
for _ in range(int(input())):
missions = []
total = 0
for _ in range(int(input())):
missions.append(list(map(int,input().split())))
k,d,a=map(int,input().split())
for mission in missions:
res = mission[0]*k-mission[1]*d+mission[2]*a
if res > 0:
total += res
print(total)
๐ฉ๐จ listํํ๋ก ๋ฐ์ appendํ ๋ค์, ํ์ ์ ๋ ฅํ ๊ฐ์ ์ฐจ๋ก๋ก ๊ณฑํด ๋ํ๊ฑฐ๋ ๋นผ๋ ์ฐ์ฐ์ ํด์ผ ํจ!
โ 2442 ๋ณ ์ฐ๊ธฐ - 5 โ
N=int(input())
for i in range(N):
print(' '*(N-(i+1))+'*'*(2*i+1))
โ 2443 ๋ณ ์ฐ๊ธฐ - 6 โ
N=int(input())
cnt=0
for i in range(N,0,-1):
print(' '*cnt+'*'*(2*i-1))
cnt+=1
โ 9295 ์ฃผ์ฌ์ โ
for i in range(int(input())):print(f'Case {i+1}: {sum(map(int,input().split()))}')
'BOJ > ๐ฅ' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
โ Implementation Beginner I - 50 Solvedโ (0) | 2022.08.22 |
---|---|
โ Number Theory Upper-Beginner I - 15 Solvedโ (0) | 2022.08.21 |
โ Implementation Basics II - 24 Solvedโ (0) | 2022.08.17 |
โ Math Beginner I - 30 Solvedโ (0) | 2022.08.16 |
โ Basics I - 50 Solvedโ (0) | 2022.07.31 |
๋๊ธ