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

Автор memoryallocator, история, 2 месяца назад, По-английски

I want to organize a private contest for my friends.

I would like to put some problems from Codeforces to the contest's problemset. To avoid cheating, the problems' statements will be rewritten, because otherwise there is a risk that someone might just google the statements to get an editorial link, and that scenario is not desirable.

I don't want to write the tests for the problems myself. Is there a way to obtain the tests from Polygon?

In other words, what I am going to do is to take an existing problem from Codeforces, rewrite its statement, copy the original problem's tests and paste the tests to the "new" problem. Is the last part possible?

UPD: solved! Thanks Mike. The solution is https://mirror.codeforces.com/blog/entry/134058#comment-1199217

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

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

Автор memoryallocator, 3 года назад, По-английски

I tried to rewrite my C++17 (64) solution for 213. Strong Defence in Rust. After some time of debugging (it kept failing test 11), I just resubmitted the accepted solution code choosing GNU C++20 (64) as a compiler. The submission failed on test 11. This means the same code in C++17 behaves differently when being submitted as a C++20 code.

32-bit C++17 solution was accepted too. Since I have experienced the same issue with the Rust solution (but the Python solution was accepted), I suspect this might be a toolchain issue.

UPD: Turns out (thanks to nor) these submissions are not publicly available. I have posted the codes in the comment section: https://mirror.codeforces.com/blog/entry/96256?#comment-853275.

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

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