Submit | All submissions | Best solutions | Back to list |
Problem hidden on 2014-05-15 20:45:37 by Francky
ORTL1P05 - Isoseles |
Given 2 sides of an isoseles triangle (the first one is the length of the repeated side, and the second one the length of the remaining) indicate its perimeter and area.
Note: an isoseles triangle has two sides of the same length, and the third one different.
Input
Two numbers
Output
One line with the perimeter of the given triangle, and another line with its area.
Example
Input: 5 6 Output: 16
12
Added by: | Joaquin |
Date: | 2014-05-14 |
Time limit: | 1s |
Source limit: | 50000B |
Memory limit: | 1536MB |
Cluster: | Cube (Intel G860) |
Languages: | All except: ASM64 |
hide comments
2014-05-15 20:45:24 Francky
More, I didn't see : there's no constraints !!! Hidden waiting for fix. @Andy : Thanks. |
|
2014-05-15 20:20:06 Andy
@francky: %.2lf get 100 point |
|
2014-05-15 19:38:46 Francky
@psetter, you have to give precision for answer with cases like "5 7", perimeter is 17, and area approx 12,49749975. What is the judge ? I hope it's "Ignore FP rounding do 10^-2". Please fix description for that or the problem will be hidden. Moreover, please give maxscore possible. I hope "12.0" is an accepted answer for "12" ! Last edit: 2014-05-15 20:05:21 |