code: https://ide.codingblocks.com/s/425213
prob: https://hack.codingblocks.com/app/contests/2022/591/problem
logic seems correct but there is some error
code: https://ide.codingblocks.com/s/425213
prob: https://hack.codingblocks.com/app/contests/2022/591/problem
logic seems correct but there is some error