Editorial for CP club qualifying round

Правка en2, от paras_churi, 2024-10-14 09:19:40

Problem A: Seeker's Truth

Determine if Dhroov is a truth-teller or a liar based on Sarid’s identity and his claim about Dhroov.

Tutorial
C++ Code
Python code

Problem B: Giga-Move Drip

Determine whether buying a coupon that reduces the price of each item is beneficial, or if it’s cheaper to pay the full price for all items.

Tutorial
C++ Code
Python code

Problem C: Manav’s Taxi Dilemma: From VJTI to Dadar

Determine the minimum number of taxis required to transport multiple groups of students, with each taxi carrying up to 4 students and groups traveling together.

Tutorial
C++ Code
Python code

Problem D: Advertisement Adventures

The task is to transform an NxN grid into a valid 'Y' shape by changing cell values with the minimum number of operations, ensuring 'Y' cells have the same value and non-'Y' cells have a different value.

Tutorial
C++ Code
Python code

Problem E: The Garba Paradox : Choose the pill — Red or Blue ?

The problem is about assigning two colors, RED and BLUE, to dancers so that no two neighboring dancers have the same color.

Tutorial
C++ Code
Python code

Problem F: Arnav vs. Paras: The Decisive Battle of Bits

You are given two numbers, n and x. The challenge is to find the smallest integer m (where m ≥ n) such that the Bitwise AND of all integers from n to m equals x.

Tutorial
C++ Code
Python code

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
en2 Английский paras_churi 2024-10-14 09:19:40 83 Tiny change: ' energy.\n- If the GCD' -> ' energy.\nIf the GCD'
en1 Английский paras_churi 2024-10-14 09:05:35 16022 Initial revision (published)