https://www.acmicpc.net/problem/27323
27323번: 長方形 (Rectangle)
整数 A, B が与えられる.縦の辺の長さが A cm,横の辺の長さが B cm である下図のような長方形の面積は何 cm2 か求めよ.
www.acmicpc.net
1
2
3
4
5
6
7
8
9
10
|
def sol(a, b):
answer = a * b
return answer
if __name__ == '__main__':
a = int(input())
b = int(input())
print(sol(a, b))
|
cs |
반응형
'python-algorithm' 카테고리의 다른 글
백준 27331 2 桁の整数 (Two-digit Integer) (0) | 2023.01.31 |
---|---|
백준 27324 ゾロ目 (Same Numbers) (0) | 2023.01.31 |
leetcode 1137. N-th Tribonacci Number (0) | 2023.01.30 |
leetcode 196. Delete Duplicate Emails (0) | 2023.01.29 |
leetcode 2433. Find The Original Array of Prefix Xor (0) | 2023.01.27 |
댓글