#B. 学校铺地板

    Type: Default 1000ms 256MiB

学校铺地板

You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.

Background

学校教室里要装地板

Description

nn间教室,教室是一个矩形,长为aa米,宽为bb米,按正方形的砖块,要按最大的正方形砖块,且不有空隙,算出所有教室一共要用多少平方米的砖

Input

n,a,b(0<n<20)(0<a<109)(0<b<109).n,a,b (0<n<20)(0<a<10^9)(0<b<10^9).

Output

算出所有教室一共要用多少平方米的砖

Samples

2
196 162
31752

gcd简单

Not Attended
Status
Done
Rule
Ledo
Problem
4
Start at
2024-3-14 4:30
End at
2024-3-14 7:30
Duration
3 hour(s)
Host
Partic.
8