SW개발/코딩테스트

[코드업 기초 100제]1081~1085 번 문제 풀이

1081번

a, b = input().split()
a = int(a)
b = int(b)
for i in range(1, a+1) :
    for j in range(1, b+1) :
        print(i, j)

1082번

a = input()
b = int(a, 16)
for x in range(1,16) :
    print("%c*%X=%X" % (a, x, b*x))

1083번

a = int(input())
for x in range(1, a+1) :
    if(x%3 == 0) :
        print("X")
    else :
        print(x)

1084번

a, b, c = input().split()
a = int(a)
b = int(b)
c = int(c)
cnt = 0
for i in range(0, a) :
    for j in range(0, b) :
        for x in range(0, c) :
            print(i, j, x)
            cnt+=1
print(cnt)

1085번

h, b, c, s = input().split()
h = int(h)
b = int(b)
c = int(c)
s = int(s)
mb = (h*b*c*s)/8/1024/1024
print("%.1f MB" % mb)
728x90