Tutorial is loading...

Tutorial is loading...

Tutorial is loading...

Tutorial is loading...

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

1 | tourist | 3602 |

2 | Petr | 3265 |

3 | ainta | 3174 |

4 | LHiC | 3163 |

5 | Um_nik | 3159 |

6 | izrak | 3109 |

7 | W4yneb0t | 3087 |

8 | RomaWhite | 3053 |

9 | moejy0viiiiiv | 3051 |

10 | I_love_Tanya_Romanova | 3031 |

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

1 | Errichto | 176 |

2 | rng_58 | 175 |

3 | Petr | 161 |

4 | csacademy | 160 |

5 | tourist | 158 |

6 | Swistakk | 151 |

6 | Zlobober | 151 |

8 | GlebsHP | 150 |

9 | zscoder | 145 |

10 | matthew99 | 138 |

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: May/24/2017 09:04:05 (c2).

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! :)