본문 바로가기
python-algorithm

백준 26082 WARBOY

by 무적김두칠 2022. 11. 30.

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

 

26082번: WARBOY

첫째 줄에 세 양의 정수 $A$, $B$, $C$($1 \le A, B, C \le 1\,000$)가 공백으로 구분되어 주어진다. $\mathbf{\mathit{B}}$는 항상 $\mathbf{\mathit{A}}$의 배수이다.

www.acmicpc.net

 

1
2
3
4
5
6
7
def sol(a,b,c):
    answer = int(b/a)*3*c
    return answer
 
if __name__ == '__main__':
    a, b, c= map(int, input().split())
    print(sol(a,b,c))
cs

사칙연산입니다

Just calculate

반응형

'python-algorithm' 카테고리의 다른 글

백준 12778 CTP공국으로 이민 가자  (0) 2022.11.30
백준 11104 Fridge of Your Dreams  (0) 2022.11.30
백준 25828 Corona Virus Testing  (0) 2022.11.30
백준 17903 Counting Clauses  (0) 2022.11.30
백준 3060 욕심쟁이 돼지  (0) 2022.11.30

댓글