CSES COIN PILES generalization possible?
Difference between en2 and en3, changed 123 character(s)
This is the problem of [cses coin piles](https://cses.fi/problemset/task/1754). I wanted to know can this problem be generalized? like for removing p coins from left pile and q coins from right pile and vice versa.↵
↵
I tried doing it but wasn't able to figure it out. And didn't even know how to check if the solution is correct or not.

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en3 English death_bringer 2026-02-01 15:47:26 123
en2 English death_bringer 2026-02-01 15:29:58 7
en1 English death_bringer 2026-02-01 15:11:29 251 Initial revision (published)