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

Автор lequydon, история, 17 часов назад, По-английски

I was working on this problem: https://codeforces.me/problemset/problem/547/B

My first submission is: https://codeforces.me/problemset/submission/547/303635124

This code resulted runtime error on test 49

However, when I removed the equal sign in my comparator function:

bool cmp(int x, int y){ return a[x] <= a[y]; }

My new submision is: https://codeforces.me/problemset/submission/547/303635252

The code was accepted! Can anyone explain why this change made a difference? Thanks!

Полный текст и комментарии »

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

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

The contest was good, problem D was very interesting. However, I want to expose two sussy users.

Problem C: https://codeforces.me/contest/2048/submission/297305429

This guy just change his code(may be not his code) to just 1 line, why did he need to do that??? May be he copied someone else's code and change it so system testing couldn't detect it?

Format code

Additionally, is another user's code for C is very similar to above code, but in another language:

Problem C: https://codeforces.me/contest/2048/submission/297300414

And there is more, their codes for D are also similar, just different language Problem D: https://codeforces.me/contest/2048/submission/297334479

Format code

Problem D: https://codeforces.me/contest/2048/submission/297331568

I still don't know if this is cheating or not, but if it is, I hope they will know their mistakes and never do it again. Cheating is unfair.

Sorry for my bad english

Полный текст и комментарии »

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