Please , help to solve this problem.

Revision en5, by dnazirzhanov05, 2020-07-25 12:02:47

Please , help to solve this problem.

Flag

The ratio of length to width of the national flag of Kyrgyzstan is 5:3.For a given natural number K (the length or width of the flag), find its area (as a natural number or a mixed fraction with the lowest possible denominator).

Input data format :** natural number K, 2 <= K <= 100. If K <= 50, this is the width, otherwise it is the length.

Output format : a single integer or three natural numbers (the integer part, the numerator and denominator) Examples : 8 ---> 106 2 3

75 ---> 3375

Tags #flag

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
ru5 Russian dnazirzhanov05 2020-08-19 12:42:26 2
ru4 Russian dnazirzhanov05 2020-08-19 12:10:41 27
ru3 Russian dnazirzhanov05 2020-08-19 10:41:35 41
en5 English dnazirzhanov05 2020-07-25 12:02:47 0 Reverted to en1
ru2 Russian dnazirzhanov05 2020-07-13 12:28:36 1 Мелкая правка: 'ta format :** natur' -> 'ta format :** natur'
ru1 Russian dnazirzhanov05 2020-07-07 11:53:30 610 Первая редакция перевода на Русский
en4 English dnazirzhanov05 2020-06-17 11:40:31 1 Tiny change: 'is problem\n Flag' -> 'is problem.\n Flag'
en3 English dnazirzhanov05 2020-06-16 07:27:50 0 (published)
en2 English dnazirzhanov05 2020-06-15 12:30:21 1 Tiny change: 'is problem.\n Flag' -> 'is problem\n Flag' (saved to drafts)
en1 English dnazirzhanov05 2020-06-15 09:03:45 613 Initial revision (published)