_Aditya_Jain_'s blog

By _Aditya_Jain_, 13 months ago, In English

Poster
We hope you enjoyed the problems in both part 1 and 2 of the contest! You can find the editorials for the problems below:

Rate the contest!

Paper 1, Problem B (Stat Expo)

Tutorial
Rate the problem

Paper 1, Problem C (Increase & Decrease)

Tutorial
Rate the problem

Paper 1, Problem D (Trader my Brother)

Tutorial
Rate the problem

Paper 1, Problem E (Unique Matrix)

Tutorial
Rate the problem

Paper 2, Problem B (Quantbulbs Fused)

Tutorial
Code (Python)
Rate the problem

Paper 2, Problem C (What the Flip?!)

Tutorial
Code (Python)
Rate the problem

Paper 2, Problem D (Alien Planet)

Tutorial
Code (Python)
Rate the problem

Paper 2, Problem E (Our Random Jump)

Tutorial
Code (Python)
Rate the problem

Paper 2, Problem F (Mysterious Algorithm)

Tutorial
Code (Python)
Rate the problem
  • Vote: I like it
  • +69
  • Vote: I do not like it

»
13 months ago, hide # |
Rev. 2  
Vote: I like it +19 Vote: I do not like it

Paper 2 C can be done even more simply,We assume T(x) as number of ways to get a string of lenght n with T at x position, and similary we define S(x), then S(x) will be T(x-1) and T(x) will simply be number of ways of placing s on x-1 and x-2, meaning T(x) = S(x-1) + S(x-2).

»
13 months ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

Can you open these problems to be viewed by all?

»
13 months ago, hide # |
 
Vote: I like it +1 Vote: I do not like it

Problem B of Paper 2 simply turns out to be the Harmonic number of x. The given recurrence after some manipulation becomes x(E(x)-1) = (x-1)(E(x-1)-1) + E(x-1), which turns out to : E(x) = E(x-1) + 1/x : The harmonic sum!

  • »
    »
    13 months ago, hide # ^ |
     
    Vote: I like it +1 Vote: I do not like it

    øh i didnt think about it that way, i did with prefix sums thanks for the new perspective!