์ƒˆ์†Œ์‹

๐Ÿงฎ PS

์ฝ”๋“œ์—… (Code up) 1078 ~ 1092 (์ข…ํ•ฉ) ํŒŒ์ด์ฌ ํ’€์ด

  • -

๋ฌธ์ œ ๋งํฌ : https://codeup.kr/problemsetsol.php?psid=23

 

๋ฌธ์ œ์ง‘ / ๊ธฐ์ดˆ 100์ œ

 

codeup.kr

 

*1078๋ฒˆ

a = int(input())
n = 2;sum = 0
while(a+1 > n) :
    sum += n
    n += 2
print(sum)

*1079๋ฒˆ

a = list(map(str,input().split()))
for i in a :
    print(i)
    if i == 'q':
        exit()

*1080๋ฒˆ

a = int(input())
sum = 0; n = 1
while(True):
    sum +=n
    if sum == a or sum > a :
        print(n)
        exit()
    n +=1

*1081๋ฒˆ

n,m = map(int,input().split())
for i in range(1,n+1) :
    for n in range(1,m+1):
        print(i,n)

*1082๋ฒˆ

a = str(input())
b =int(a,16)
for i in range(1,16) :
    print("%s*%X=%X"%(a,i,b*i))

*1083๋ฒˆ

a = int(input())
n=0
while (a != n):
    n+=1
    if n%3==0: print("X",end = " ")
    else: print(n,end=" ")

*1084๋ฒˆ

r,g,b = map(int,input().split())
num = 0
for i in range(r):
    for j in range(g):
        for k in range(b):
            print(i,j,k)
            num +=1
print(num)

*1085๋ฒˆ

h,b,c,s = map(int,input().split())
sum = h*b*c*s
result = sum/(8*(2**20))
print("%0.1f MB"%result)

*1086๋ฒˆ

w,h,b = map(int,input().split())

sum = w*h*b
result = sum / (8*2**20)
print("%.2f MB"%result)

*1087๋ฒˆ

a = int(input())
sum = 0; n=1
while(a>sum and a!=sum):
    sum += n
    n+=1
print(sum)

*1088๋ฒˆ

a = int(input())
n = 1
while (a+1>n):
    if n%3 !=0 :
        print(n)
    n+=1

*1089๋ฒˆ

a,d,n = map(int,input().split())
count = 1
while (n != count):
    a+=d
    count+=1
print(a)

*1090๋ฒˆ

a,r,n = map(int,input().split())
count = 1
while (n != count):
    a *=r
    count+=1
print(a)

*1091๋ฒˆ

a,m,d,n = map(int,input().split())
count = 1
while (n != count):
    a = a*m+d
    count+=1
print(a)

*1092๋ฒˆ

a,b,c = map(int,input().split())
n = 0
while(True) :
    n+=1
    if n%a == 0 and n%b ==0 and n%c ==0:
        print(n)
        exit()

*C++/CPPํ’€์ด๋„ code up ์นดํ…Œ๊ณ ๋ฆฌ์— ์žˆ์Šต๋‹ˆ๋‹ค.

Contents

ํฌ์ŠคํŒ… ์ฃผ์†Œ๋ฅผ ๋ณต์‚ฌํ–ˆ์Šต๋‹ˆ๋‹ค

์ด ๊ธ€์ด ๋„์›€์ด ๋˜์—ˆ๋‹ค๋ฉด ๊ณต๊ฐ ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค.