Boars of Armorica
CodeChefOpen on judge ↗
Asterix and Obelix have returned from a long journey to Spain. Having thrashed a lot of Roman legionaries, they are certainly happy and looking to celebrate by having their traditional feast. There is a line of $N$ roasted boars on the table, and Obelix is starving. The initial tastyness of each boar is denoted by $A[i] (0 \leq i < N)$. Also, Getafix the druid has cast a spell that if Obelix e
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