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

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

Hello Codeforces!!

This was our first attempt at making a contest.

I and my friend, a_kk , we both made a contest for our college. There were a total of 6 problems(4 easy and 2 medium) and participants were given 2 hours to solve them.

The problems are interesting. All those who want to try them are invited. If you're an expert or less, then definitely, you'll learn something :)

Link to the contest : link

It would be lovely to have feedback from your guys!

Happy solving!!

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

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

How to solve "Jitu and strings" if the no of swaps was given to at most K. Where K could be in the order of length of the string?

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

I solved 4 problems in 2 hours:

  • "A. hmrockstar at bank" — O(n), linear maximum search. Code.
  • "B. haaby's dream job — Digital Cleaner" — O(sqrt(k)), mathematics, dividers, combinatorics. Code.
  • "C. KJ and street lights" — O(n sqrt(n)) — SQRT-decomposition + linear search for the maximal sequence of zeros. Code.
  • "D. Jitu and Strings" — O(n log(n)) — polynomial hashes + binary search. Code

After 2 hours solved:

  • "E. Arun sir and his girlfriend!" — O(n log(n) * WORD_WIDTH) — sort + implicit prefix tree + binary search. Code

Nice problems, thanks! Is the contest already complete and can I open the source code of solutions?

And your problem D does not contain an anti-hash test :((

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

Nice problems. But can these problem be added in any vjudge contest? I tried, but vjudge couldn't crawl the problems. Any way to add in vjudge contest ?