Programming/JUNGOL : 정보올림피아드&알고리즘

[JUNGOL LCoder_Python 연산자]:740~756

토토모에요 2022. 1. 26. 17:04
728x90
반응형

JUNGOL 정보올림피아드&알고리즘에서 학습용으로 문제를 가져왔습니다. 문제가 될 시 수정, 삭제하겠습니다.

http://www.jungol.co.kr/

740

a=int(input())
b=int(input())
c=int(input())
print("sum : %d"%(a+b+c))
print("avg : %d"%((a+b+c)/3))

741

a=int(input())
print(a)
print(a+2)

742

a=int(input())
b=int(input())
print(a+100,b%10)

743

a=int(input())
b=int(input())
print(a+1,b-1,a*(b-1))

744

a=int(input())
b=int(input())
if a==b:
    print("True")
else:
    print("False")
if a!=b:
    print("True")
else:
    print("False")

745 Accepted(30)

a=int(input())
b=int(input())
print("%d > %d --- False"%(a,b))
print("%d < %d --- True"%(a,b))
print("%d >= %d --- False"%(a,b))
print("%d <= %d --- True"%(a,b))

746

a=True
b=True
c=False
print(not a)
print(a and b)
print(a or c)
print(a and (b or c))
print(a or (b and c))
print(not a or (b and not c))

747

a=int(input())
b=int(input())
c=int(input())
if a>b and a>c:
    print("True",end=" ")
else:
    print("False", end=" ")
if a==b and a==c:
    print("True")
else:
    print("False")

748

a=input()
b=input()
print(a*2+b*3)

749

a=int(input())
b=int(input())
c=int(input())
d=int(input())
print("sum",a+b+c+d)
print("avg %d"%((a+b+c+d)/4))

750

a=int(input())
b=int(input())
print("%d / %d = %d ... %d"%(a,b,a/b,a%b))

751

a=int(input())
b=int(input())
print("width = %d"%(a+5))
print("length = %d"%(2*b))
print("area = %d"%((a+5)*(2*b)))

752

a=int(input())
b=int(input())
print(a+1,b)
print(a+1,b-1)
반응형