Tutorial is loading...

Tutorial is loading...

Tutorial is loading...

Tutorial is loading...

# | User | Rating |
---|---|---|

1 | tourist | 3602 |

2 | Petr | 3265 |

3 | Um_nik | 3183 |

4 | ainta | 3174 |

5 | Radewoosh | 3163 |

6 | W4yneb0t | 3148 |

7 | LHiC | 3139 |

8 | izrak | 3109 |

9 | RomaWhite | 3053 |

10 | moejy0viiiiiv | 3051 |

# | User | Contrib. |
---|---|---|

1 | rng_58 | 180 |

2 | Errichto | 170 |

3 | csacademy | 161 |

4 | Petr | 160 |

5 | tourist | 158 |

6 | Swistakk | 155 |

7 | Zlobober | 151 |

8 | GlebsHP | 149 |

9 | zscoder | 145 |

10 | matthew99 | 140 |

Tutorial is loading...

Tutorial is loading...

Tutorial is loading...

Tutorial is loading...

↑

↓

Codeforces (c) Copyright 2010-2017 Mike Mirzayanov

The only programming contests Web 2.0 platform

Server time: Jun/27/2017 13:35:57 (p1).

Desktop version, switch to mobile version.
User lists

Name |
---|

Where can we get the questions in english?

Click

Why can't I participate in this contests?

I think that

k= 0 is a special case in the problem D.What is test 49 for problem C???

I get WA on it, and couldn't understand what I did wrong, Can anyone please see my code:

25221347

Yes!!! I also asked about it and I got this message:

There is some bug within this algorithm. I find out some kind of data that can prove it wrong.

This version of code's answer is

DDDLLDDRDULUURRUUUBut the true answer should be

DDDLLDDRDRRUUUUUULArriving the position "b", obvoiusly the previous answer is not the good one.I have submited another code for this problem and got it accepted.

Thank you.

Hope it helped

Exactly :D

finally I knew whats wrong with my approach, thanks a lot man, I owe you one :)

BTW, the correct answer for this case is

DDDLLDDRDRRUUULUUUsince'L'is minimal than'U'Hope you update it soon enough, Thank you!I did the same reversal algorithm 26987013 and was so mad how it didn't pass although I'm choosing the minimal each step! Thanks so much for that lovely hack! :)