Solutions are presented as using the least memory and the fastest execution time. It also takes the top 10 most recent solutions from each language. If you want to limit to a specific index, click the "Solved" button and go to that problem.
ContestId |
Name |
Phase |
Frozen |
Duration (Seconds) |
Relative Time |
Start Time |
|---|---|---|---|---|---|---|
| 683 | Surprise Language Round 8 | FINISHED | False | 9000 | 310399185 | June 16, 2016, 4 p.m. |
Solved |
Index |
Name |
Type |
Tags |
Community Tag |
Rating |
|---|---|---|---|---|---|---|
| ( 144 ) | G | The Fraction | PROGRAMMING | *special | 2100 |
Periodic decimal fraction is usually written as: entire_part.non-periodic_part (period) . Any simple fraction can be represented as a periodic decimal fraction and vice versa. For example, the decimal fraction 0.2(45) corresponds to a fraction 27 / 110 . Your task is to convert the periodic fraction to a simple periodic fraction. The first line contains the periodic decimal fraction x ( 0 < x < 1 ) in the format described in the statement. The total number of digits in the period and non-periodic part of the fraction does not exceed 8. Non-periodic part may be absent, the periodic part can't be absent (but it can be equal to any non-negative number). Print the representation of the fraction x as a simple fraction p / q , where p and q are mutually prime integers. |
Submission Id |
Author(s) |
Index |
Submitted |
Verdict |
Language |
Test Set |
Tests Passed |
Time taken (ms) |
Memory Consumed (bytes) |
Tags |
Rating |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 18971418 | krijgertje | G | July 8, 2016, 2:26 p.m. | OK | Kotlin | TESTS | 20 | 124 | 0 | 2100 | |
| 18528317 | nukeykt | G | June 16, 2016, 5:58 p.m. | OK | Kotlin | TESTS | 20 | 124 | 0 | 2100 | |
| 18527464 | eddy1021 | G | June 16, 2016, 5:30 p.m. | OK | Kotlin | TESTS | 20 | 124 | 0 | 2100 | |
| 18527048 | pitfall | G | June 16, 2016, 5:17 p.m. | OK | Kotlin | TESTS | 20 | 124 | 0 | 2100 | |
| 18526347 | dalex | G | June 16, 2016, 4:56 p.m. | OK | Kotlin | TESTS | 20 | 124 | 0 | 2100 | |
| 18525820 | Egor | G | June 16, 2016, 4:41 p.m. | OK | Kotlin | TESTS | 20 | 124 | 0 | 2100 | |
| 23365286 | Ali.Pi | G | Dec. 27, 2016, 6:43 p.m. | OK | Kotlin | TESTS | 20 | 124 | 20992000 | 2100 | |
| 18527419 | jjjjjjjjjjj | G | June 16, 2016, 5:28 p.m. | OK | Kotlin | TESTS | 20 | 139 | 0 | 2100 | |
| 18527165 | Arthur | G | June 16, 2016, 5:20 p.m. | OK | Kotlin | TESTS | 20 | 139 | 0 | 2100 | |
| 18526516 | microtony | G | June 16, 2016, 5:01 p.m. | OK | Kotlin | TESTS | 20 | 139 | 0 | 2100 |
Back to search problems