Блог пользователя Retired_xryjr233

Автор Retired_xryjr233, история, 9 лет назад, По-английски

In Codeforces Round # 439 (Div. 2), my B title was hacked so that I late passed through for 1 hour and lost a lot of points. The first hack, or a bit uncomfortable. But also told me that their code ability is still relatively weak, error correction capability has yet to be improved.Although hacker Dragon made me rank behind, but from a certain point of view, I would like to thank him. Because he made me discover my own shortcomings. (original is Chinese,Translation is provided by Google Translate)

  • Проголосовать: нравится
  • +13
  • Проголосовать: не нравится

»
9 лет назад, скрыть # |
 
Проголосовать: нравится +20 Проголосовать: не нравится

wow i managed to understand text translated with Google Translate

»
9 лет назад, скрыть # |
 
Проголосовать: нравится 0 Проголосовать: не нравится

I got the B problem hacked too. If it serves as a comfort, the problem itself was hack-propense if you didn't see the "trick" explained in the editorial.

When I submitted B I was almost sure it was going to be hacked, so I did a brute force solution (precalc all the factorials, a partial sum and then the simulation of the division) and I found some cases that broke it. The brute solution takes time to code but it is better to have it than to pray that no one hacks you.

»
6 лет назад, скрыть # |
Rev. 4  
Проголосовать: нравится -36 Проголосовать: не нравится

.