관리 메뉴

솜씨좋은장씨

[BaekJoon] 20254번 : Site Score (Python) 본문

Programming/코딩 1일 1문제

[BaekJoon] 20254번 : Site Score (Python)

솜씨좋은장씨 2022. 5. 26. 11:11
728x90
반응형

코딩 1일 1문제! 오늘의 문제는 백준의 Site Score 입니다.

 

20254번: Site Score

Teams from variaous universities compete in ICPC regional contests for tickets to the ICPC World Finals. The number of tickets allocated to every regional contest may be different. The allocation method in our super region, Asia Pacific, is based on a para

www.acmicpc.net

👨🏻‍💻 코드 ( Solution )

def site_score(numbers):
    site_num = [56, 24, 14, 6]
    
    return sum([(site * num) for site, num in zip(site_num, numbers)])

if __name__ == "__main__":
    numbers = list(map(int, input().split()))
    print(site_score(numbers))
 

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