관리 메뉴

솜씨좋은장씨

[BaekJoon] 16099번 : Larger Sport Facility (Python) 본문

Programming/코딩 1일 1문제

[BaekJoon] 16099번 : Larger Sport Facility (Python)

솜씨좋은장씨 2022. 11. 13. 12:24
728x90
반응형

코딩 1일 1문제! 오늘의 문제는 백준의 Larger Sport Facility 입니다.

 

16099번: Larger Sport Facility

In a lot of places in the world, elite universities come in pairs and their students like to challenge each other every year. In England, Oxford and Cambridge are famous for The Boat Race, an annual rowing race that opposes them. In Switzerland, students f

www.acmicpc.net

🧑🏻‍💻 코드 ( Solution )

def larger_sport_facility(lt, wt, le, we):
    larger_facility = "Tie"
    
    eurecom = lt * wt
    telecomparistech = le * we
    
    if eurecom > telecomparistech:
        larger_facility = "TelecomParisTech"
    elif eurecom < telecomparistech:
        larger_facility = "Eurecom"
        
    return larger_facility


if __name__ == "__main__":
    for _ in range(int(input())):
        lt, wt, le, we = map(int, input().split())
        
        print(larger_sport_facility(lt=lt, wt=wt, le=le, we=we))
 

GitHub - SOMJANG/CODINGTEST_PRACTICE: 1일 1문제 since 2020.02.07

1일 1문제 since 2020.02.07. Contribute to SOMJANG/CODINGTEST_PRACTICE development by creating an account on GitHub.

github.com

Comments