haju__log

[python][백준/BOJ] 5063번 : TGN 본문

BOJ_백준

[python][백준/BOJ] 5063번 : TGN

haju 2023. 3. 8. 19:24
반응형

https://www.acmicpc.net/problem/5063

 

5063번: TGN

첫째 줄에 테스트 케이스의 개수 N이 주어진다. 다음 N개의 줄에는 3개의 정수 r, e, c가 주어진다. r은 광고를 하지 않았을 때 수익, e는 광고를 했을 때의 수익, c는 광고 비용이다. (-106 ≤ r,e ≤ 106

www.acmicpc.net

 

n=int(input())

for _ in range(n):
    r,e,c=map(int,input().split())
    if e<r+c:
        print("do not advertise")
    elif e>r+c:
        print("advertise")
    else:
        print("does not matter")
반응형