← All problemsSign in

Judgement Day 2

You are going to be born as a saint on a planet far from earth. The planet consists of $N$ islands. Your job is to civilize the islands (not mandatorily all). Each island has its virtue level and you will get a follower from each island you visit. At each island the virtue level of you and your followers will drop down to the minimum of your current virtue level and virtue level of that island.

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.

voice by Sarvam AI

Sign in to chat with the tutor and save your progress.

Sign in to start