Queries on special coins in a row
Filed under Sabre
The question
Given N coins in a row and Q queries, process range queries to either compute the sum or product of 'special' coins. A coin is special if its distance from another special coin index is evenly divisible by a given value Y.
No write-up yet. Related questions below have one.
Related Sabre questions
Collected from public candidate posts and coding forums. Updated Nov 2026.