Carol alege un bloc contiguu (start ≡ r mod k), Luis o fereastră de p reziduuri mod k; maximizăm suma reuniunii.