Angry Battu
CodeChefOpen on judge ↗
Problem description. Little Battu has just learnt to count. He likes to see the numbers in the strictly increasing order. He gets angry by 1 unit for every pair of numbers that are not in order. Given an array, can you find out how angry he will be after reading the array? Input First line contains number of test cases - T. Each test case will have two lines First line contains the number of 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