问题3116--Equilateral Triangle

3116: Equilateral Triangle

[命题人 : ]
时间限制 : 1.000 sec  内存限制 : 64 MB

题目描述

Ice and Wenwen are good friends, but they are both strange men. And each of them has a very strange working room. Their rooms are not rectangle, but equilateral triangle. 2010's Asia Regional Site(Hangzhou site) is hosted by Zhejiang Sci-Tech University, and many acmers will come to Hangzhou. Ice and Wenwen want to show the acmers their working rooms. So they should decorate their rooms. Since they are good friends, they want to use the same size ground tile.The size of ground tiles is integer number. Now can you help to select ground tiles,let the number of ground tiles is minimize.

输入

Each test case contains two integers s1,s2 - s1 is the length of ice's room's side,and s2 is the length of Wenwen's.

输出

For each test case, you should output three integer numbers s,n1,n2 seperated by a space. Number s is the length of the ground tiles, n1 is the number of ground tiles ice needed, and n2 is the number of ground tiles Wenwen needed.

样例输入 Copy

1 2

样例输出 Copy

1 1 4

来源/分类