justHusam's blog

By justHusam, history, 2 months ago, In English,

Hello Codeforces,

I would like to invite you all to participate in the 2018 JUST Collegiate Programming Contest. The contest was originally held on 31st of March, and it will launch in Codeforces Gym on Saturday 28 July 2018 10:00 UTC.

The problems were prepared by justHusam (Husam Musleh), Lvitsa (Αlαα Abu Hantash), and Nada_Shamayleh (Nada Al-Shamayleh).

Thanks to Light (Hamza Zagha), Dehayat (Mohammad Dehayat), and AbedAbuhijleh (Abed Abu-Hijleh) for testing the problem set.

The duration of the contest is 4 hours, and the registration will be open 6 hours before the start of the contest.

Good luck to everyone, and I wish you all accepted solutions.

UPD: Registration is currently open.

 
 
 
 
  • Vote: I like it  
  • +43
  • Vote: I do not like it  

»
2 months ago, # |
  Vote: I like it +14 Vote: I do not like it

The difficulity of problems is Div.3 or Div.2???

»
2 months ago, # |
  Vote: I like it +14 Vote: I do not like it

How to solve problem G-Hard Equation ?

  • »
    »
    2 months ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    In problem G, you are required to solve the Discrete Logarithm Problem. You can use the Baby-step giant-step algorithm to solve the problem.

    • »
      »
      »
      2 months ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      How can we calculate modular inverse since it is not necessary that a and m are co-prime.

      • »
        »
        »
        »
        2 months ago, # ^ |
          Vote: I like it 0 Vote: I do not like it

        I'm not sure why computing the inverse step is mentioned in Wikipedia, but it is not necessary. Check this tutorial from GeeksforGeeks.

        • »
          »
          »
          »
          »
          5 weeks ago, # ^ |
            Vote: I like it 0 Vote: I do not like it

          The tutorial on GeeksforGeeks also only work when a and m are coprime. Otherwise, the expression is not always true, for example with a = 4, b = 1, m = 10, i = 2, j = 4.

          I don't know what to do next from here. Any suggestion?

»
2 months ago, # |
  Vote: I like it +3 Vote: I do not like it

Is there an editorial?

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

how to solve problem E. Maximum Sum ?

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

    You can solve it using dynamic programming. Think of it as if you want to calculate the answer of the of row i, then you only care about which cells you have chosen in the row i - 1. Or you can think if you want to choose cell (x, y), then you only need to check if you have chosen cells (x, y - 1), (x - 1, y - 1), (x - 1, y), and (x - 1, y + 1).

»
2 months ago, # |
  Vote: I like it 0 Vote: I do not like it

What testcase was added to B after the contest?

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

    A contestant sent me a message with a test case that can break some accepted solutions after the contest has ended, so I updated the test cases. I prefer not to tell you about the test case so you can discover your mistake by yourself =D.

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

how to solve problem A?

»
7 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

how to solve B

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

what is the solution for I circles?? its giving tle in test 2

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

    make sure you are using fast I/O, because time limit is very tight if you are using cin with doubles or just take the input as integers not doubles.

    • »
      »
      »
      5 weeks ago, # ^ |
        Vote: I like it 0 Vote: I do not like it

      I used fast io bt used doubles.. Will check for integers.. Thanks

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

any hint for C. intersections??

»
5 weeks ago, # |
  Vote: I like it 0 Vote: I do not like it

Can the administrator please open the solution of all users??

  • »
    »
    4 weeks ago, # ^ |
      Vote: I like it 0 Vote: I do not like it

    I am agree with you sir!!! Please open solutions as sir demanded.