Welcome to Quark 23
CodeChefOpen on judge ↗
The organizers of Quark'23 want to buy a gift for the top participant. They know a shop that has a variety of unique gifts. They choose one of the gifts, but the price tag is missing. To decide the selling price of the gift, the shopkeeper gives them a task to solve. The name of the gift is a string $S$ consisting of lowercase English letters. The shopkeeper promises to sell the gift to the organ
HINT LADDERno hints yet
L1 Observation
L2 Technique
L3 Approach
L4 Pseudo-code
🔒
L5 Full solution
L5 unlocks only if you insist twice
solution.cppC++17
CodeSearch Tutor
Hints, not spoilers — it won’t hand over the full solution unless you insist.
Sign in to chat with the tutor and save your progress.
Sign in to start