Can anyone explain the logic behind this problem ?
(https://atcoder.jp/contests/abc196/tasks/abc196_d)
CodeChef Starters 134 Solution Discussion (With Contest Winner)
Colin X Sam X Shayan | Easy Problems Duel | NAC Warmup #1