Atcoder notes
B - Voting Judges
Simple but good for coding excercise
D - Semi Common Multiple
- By substraction we know the delta is the LCM of A
- By factoring we know the init must be the LCM/2, just need to verify that every number satisfies the condition
- What got me is how LCM is calculated - just use lcm formula rolling through the A. Other approachs couldn’t handle catches
- The cnt calc formla can be simplfied to M //(lcm//2) - M // lcm