Naseem17's blog

By Naseem17, history, 3 years ago, In English

Hello codeforces community!

I am happy to invite you to participate in the Aleppo Collegiate Programming Contest 2023 V.2 (V.2 because the first version of the contest was dismissed, so this is version 2) that was held at Damascus University on Aug/22/2023 17:00 (Moscow time). The online training will be on codeforces gyms and will start on Aug/29/2023 14:00 (Moscow time).

Thanks to Kaitokid, AboAbdoMC, Mahmoud_Haddad, Obada_Saleh, Mohanad_Nahhal, YazanAlattar, A.D., Helal_Salloum, Wael_Mchantaf and radi__07 for creating and preparing the contest. Special thanks to Majedh and Anas_Da who did most of the work.

Thanks to Baraa_Armoush and HeMoo for their contribution and constructive feedback.

Thanks to Vectors_Master, TripleM5da, IsaacMoris, BabaVoss, Abdelrahman_Etman, LastDance_NotLastOfMe and Assem_albitar for solo testing.

Thanks to the team testers:

Thanks to Damascus University for hosting the onsite contest.

Thanks to polygon for providing the amazing platform for creating and preparing the problems, and to codeforces for the hosting of the online training.

I hope you enjoy solving the problems. Any feedback will be appreciated.

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

| Write comment?
»
3 years ago, hide # |
 
Vote: I like it +42 Vote: I do not like it

As a tester, I'd like to say that naseem makes some good matcha.

»
3 years ago, hide # |
 
Vote: I like it +31 Vote: I do not like it

As a tester , I think I deserve some contribution LOL

»
3 years ago, hide # |
Rev. 2  
Vote: I like it +31 Vote: I do not like it

As a problem setter

Naseem is the greatest chief judge I've ever seen

»
3 years ago, hide # |
 
Vote: I like it +20 Vote: I do not like it

Excited for this round. It is expected that this round will be enjoyable :)

»
3 years ago, hide # |
 
Vote: I like it +26 Vote: I do not like it

As a tester, I can say that the authors did a great job on this contest with all the interesting problems.

»
3 years ago, hide # |
 
Vote: I like it +21 Vote: I do not like it

Thanks, you are the best

»
3 years ago, hide # |
 
Vote: I like it +23 Vote: I do not like it

Lk 3ashhh <3

»
3 years ago, hide # |
 
Vote: I like it +23 Vote: I do not like it

Thanks to everyone who contributed to this

»
3 years ago, hide # |
 
Vote: I like it +26 Vote: I do not like it

Thanks for the nice problem ideas and strong testing :)

»
3 years ago, hide # |
 
Vote: I like it +6 Vote: I do not like it

As a tester , I'd like to say I'm so proud of you Naseem17

»
3 years ago, hide # |
 
Vote: I like it +11 Vote: I do not like it

is it team contest?

»
3 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

Are the problems provided in English?

»
3 years ago, hide # |
 
Vote: I like it 0 Vote: I do not like it

Editorial?

  • »
    »
    3 years ago, hide # ^ |
     
    Vote: I like it 0 Vote: I do not like it

    which problem do you need ?

    • »
      »
      »
      3 years ago, hide # ^ |
       
      Vote: I like it 0 Vote: I do not like it

      want G and M

      • »
        »
        »
        »
        3 years ago, hide # ^ |
        Rev. 3  
        Vote: I like it 0 Vote: I do not like it
        Editorial For G :
        Code
»
3 years ago, hide # |
 
Vote: I like it +5 Vote: I do not like it

As a tester I am too late to write comment.

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

How do you solve problem A?

  • »
    »
    2 years ago, hide # ^ |
    Rev. 3  
    Vote: I like it 0 Vote: I do not like it

    As $$$x \lt = 10^9$$$ You can replace every $$$a_i$$$ with $$$g = gcd(x, a[i])$$$ because you can't get more contribution than $$$g$$$ from $$$a_i$$$. Now all integers are the divisors of $$$x$$$. So, there will be about $$$10^3$$$ distinct integers. You can store maximum $$$q$$$ duplicates from each of them where $$$q$$$ is maximum power of a prime factor of $$$x$$$. Now, try using dp to find a proper subset.

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

Hints on H?

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

Someone please provide Editorial for problem D

I have tried Binary search to find b.. assuming a = x;

but getting WA on test 4

CODE