13

Contest Based on Brain Craft Intra SUST Programming Contest 2023

 1 year ago
source link: https://codeforces.com/blog/entry/114800
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
By steinum, 2 days ago, In English

Hello, Codeforces!

The flagship contest of SUST is here everyone! There will be 12 problems and the problemset is based on Brain Craft Intra SUST Programming Contest 2023. We cordially invite you to participate in this contest. Also, we encourage you to participate as teams. Please make sure that you read ALL the problems!

The contest will be held on Friday, April 7, 2023 at 08:05UTC and will run for 5 hours.

The setters of this contest are: Alfeh, Kawchar85, Mac_prime, magic_kiri, nh_nayeem, Raiden, ShikariSohan, ShinnirKolaChori, susmoydhar7, Tahseen

Contest link: Contest Based on Brain Craft Intra SUST Programming Contest 2023

UPD: Congratulations to the winners of the round!

Top 5 of all participants:

Participants who sent the first correct solution to the problems:

UPD2:

Solutions

104283A - Yet Another Short Statement
ideas: Kawchar85
prepared: steinum

Solution (steinum)

104283B - Johny English and Group Formation
ideas: Raiden
prepared: Raiden

Solution (Raiden)

104283C - Johnny English Strikes Again
ideas: Raiden
prepared: Raiden

Solution (Raiden)

104283D - Search For Beauty
ideas: Kawchar85
prepared: Kawchar85

Solution (Kawchar85)

104283E - Tree query with update
ideas: Alfeh
prepared: Alfeh

Solution (Alfeh)

104283F - Find GCD
ideas: Kawchar85
prepared: Kawchar85

Solution (Kawchar85)

104283G - Another Tree Query
ideas: Alfeh
prepared: Alfeh

Solution (Alfeh)

104283H - Sequential Nim
ideas: Kawchar85
prepared: Kawchar85

Solution (Raiden)

104283I - The Secret Key
ideas: Kawchar85
prepared: Kawchar85

Solution (steinum)

104283J - Magic Balls
ideas: Raiden
prepared: Raiden

Solution (nh_nayeem)

104283K - Special Lattice Path
ideas: magic_kiri
prepared: steinum

Solution (steinum)

104283L - Ultimate Game
ideas: ShinnirKolaChori
prepared: Raiden

Solution (steinum)

2 days ago, # |

Supper Excited

2 days ago, # |

Thanks for the contest(:

2 days ago, # |

There are some very interesting problems. I'd suggest everyone to read all the problems. Also participating as a team is recommended.

2 days ago, # |

The tasks are worth brainstorming I assure! Good luck people!

2 days ago, # |

As a setter and tester I can assure you that the problems are quite interesting and you will enjoy it.

2 days ago, # |

As a setter & tester, the tasks are quite interesting and the statements are clear.

2 days ago, # |

initiative @shinnirKola

2 days ago, # |

As a participant, I will not do this contest again.

2 days ago, # |

Very Eagerly waiting!

47 hours ago, # |

I'm excited to participate with my team

40 hours ago, # |

excited to participate but it will coincide with the iftar time.

  • 39 hours ago, # ^ |

    who knows! you might packet the set within 4hour! see you at standing :D

    • 30 hours ago, # ^ |

      Thanks for contest.

33 hours ago, # |

Rev. 3  

+5

What was the intended time complexity on I ?

My solution had a complexity of , where div(N) is count of all the divisors of N = max(A, B). And, still my solution didn't fit into the limit. I changed long long to int and it passed, nice.

  • 32 hours ago, # ^ |

    Rev. 3  

    0

    I think you mean T*div(max(A,B)), where T is number of testcases. My solution using long long initially TLed but passed using fast io.

    • 32 hours ago, # ^ |

      Yes, thanks. Idk, I had even fast io, still I had hard time getting AC.

  • 32 hours ago, # ^ |

    Can you share the solution of tree query problem both E and G

  • 32 hours ago, # ^ |

    Rev. 2  

    0

  • 14 hours ago, # ^ |

    approach pls

    • 13 hours ago, # ^ |

      should be the divisor of . You can check all divisors of . You need to be careful when and . In that case, answer is .

      • 13 hours ago, # ^ |

        did same but was getting WA

      • 11 hours ago, # ^ |

        Rev. 3  

        0

        Do same thing but got TLE

        please help me satyam343

    • 8 hours ago, # ^ |

      In addition to what @satyam343 has said, you have to handle cases when either A or B is equal to its remainder or less than its remainder.

32 hours ago, # |

Easier version of G. Also, how to do A? I thought of digit dp + binary search, but number of operations per testcase would be 162*18*10*log(k), which will TL over 1e5 testcases

  • 32 hours ago, # ^ |

    How to do G , Any hint??

    • 32 hours ago, # ^ |

      Suppose you have two components, and you know the endpoints of a diameter for both. Suppose [P1, P2] is a diameter of the first component, [Q1, Q2] is a diameter of the second component. After merging these two components, the resulting diameter will have endpoints among [P1, P2, Q1, Q2]. We can check all these distances in logarithmic time using LCA, and update the diameter accordingly

      • 32 hours ago, # ^ |

        Can you please share your solution. It is difficult for me to understand. by seeing code and what you say , I can interpret the idea behind the solution I will be vey thankful to you.

          • 32 hours ago, # ^ |

            we can not see the submissions, you can paste in ideone then i am able to see

            • 32 hours ago, # ^ |

              Go to common standings, double click on any AC cell in that particular task, you'll be able to see it

              • 32 hours ago, # ^ |

                they restricted the submission

              • 31 hour(s) ago, # ^ |

                you have permission to see only the solved problem solution.

                • 31 hour(s) ago, # ^ |

                  those question which i have solved why we see them again :)))))

                • 31 hour(s) ago, # ^ |

                  because you have many things to learn from other's solution :| @Snapper_001

        • 31 hour(s) ago, # ^ |

          here is Chimpanzee's solution on ideone

          • 26 hours ago, # ^ |

            Thanks bro for the solution

      • 27 hours ago, # ^ |

        I see your code , i am getting some idea. Actually you are merging and keep track of diameter end point of these two components and we have our full tree also which give us distance so we can figure out the new diameter end point. Thanks for your solution

  • 32 hours ago, # ^ |

    instead of binary search you can just walk on dp table. again if you take a smaller number for any position, you can save the state for all test case

32 hours ago, # |

How to see others solution? If it is restricted please make it open , it will be very helpful Thanks

  • 32 hours ago, # ^ |

    afiak there is no option to do that.

31 hour(s) ago, # |

How to solve D ?

    • 31 hour(s) ago, # ^ |

28 hours ago, # |

where is YouKn0wWho? surprising to see a Shahjalal University contest without Shahjalal.xD

26 hours ago, # |

Anyone give me B and F solution, please.

22 hours ago, # |

How to solve D, any hints? I tried to solve J considering strongly connected component of a directed graph. I tried to maximize the prizes of each balls accordingly. what was wrong?

17 hours ago, # |

How to solve F? was gettin tle

9 hours ago, # |

Rev. 2  

+6

I love whole Problem Set, Can anyone give me some hints for Ques A). Yet Another Short Statement


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK