Ormlis's blog

By Ormlis, history, 3 hours ago, translation, In English

Thank you for participating!

2024A - Profitable Interest Rate was authored and prepared by Helen Andreeva with Artyom123

2024B - Buying Lemonade was authored by Endagorion and prepared by sevlll777

2023A - Concatenation of Arrays was authored and prepared by Mangooste

2023B - Skipping was authored and prepared by adepteXiao

2023C - C+K+S was authored and prepared by yunetive29

2023D - Many Games was authored and prepared by Tikhon228

2023E - Tree of Life idea by isaf27, solution and preparation by Ormlis

2023F - Hills and Pits was authored and prepared by glebustim with vaaven

Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
Tutorial is loading...
  • Vote: I like it
  • +27
  • Vote: I do not like it

»
3 hours ago, # |
  Vote: I like it +15 Vote: I do not like it

Ormlis when will hidden test case and source code of others be visible?

  • »
    »
    2 hours ago, # ^ |
      Vote: I like it +3 Vote: I do not like it

    Only administrators can do this, not me.

    • »
      »
      »
      2 hours ago, # ^ |
      Rev. 2   Vote: I like it +3 Vote: I do not like it

      Oh sorry I didn't know. Btw great contest Thank you

»
3 hours ago, # |
Rev. 2   Vote: I like it 0 Vote: I do not like it

Hi, I cannot prove my solution for div1D nor hack it I hope someone can hack or prove it.

Spoiler
»
3 hours ago, # |
  Vote: I like it 0 Vote: I do not like it

i swear i can't figure out for the life of me why my solution to B isn't correct, and i'm not allowed to look at the failing test case either.

Spoiler
  • »
    »
    2 hours ago, # ^ |
      Vote: I like it +1 Vote: I do not like it

    I dont know about the formulas, but you should use long long instead of int.

  • »
    »
    2 hours ago, # ^ |
    Rev. 2   Vote: I like it +1 Vote: I do not like it

    Bro your code won't return any output if k is equal to sum of all elements of the array.

    Try

    1

    3 6

    1 2 3

    Comment if you want me to fix it

»
2 hours ago, # |
Rev. 3   Vote: I like it 0 Vote: I do not like it

then $$$c_p \cdot q^{c_p} > (c_p - 1) \cdot q^{c_p - 1}$$$; otherwise, the smallest element can definitely be removed.

why?

»
104 minutes ago, # |
  Vote: I like it 0 Vote: I do not like it

C is a piece of dogShit,i mean why it had to be based on some crap observation.It could have been improved by giving a formal proof of why does that always work. Disappointed...

  • »
    »
    42 minutes ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    What's wrong with the proof provided?

  • »
    »
    26 minutes ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    Another solution is to sort the arrays by comparing pairs $$$(min(a_{i,1}, a_{i,2}), max(a_{i,1},a_{i,2}))$$$. We can observe that if we move the array with minimal element to the left (and among these with the least maximum), the number of inversions cannot increase, so that's optimal order