Equal Distribution

Limits 1s, 512 MB

Subhashis and Bipro participated in many onsite programming contests during their varsity life. From those contests they got a lot of T-Shirts as goodies. After ages they are planning of donating those shirts into poor kids. Through statistics they have collected the number of kids that live below the poverty line. They want to know if they can equally distribute their T-Shirts(not necessarily all) among those poor kids.

This is a companion discussion topic for the original entry at https://toph.co/p/equal-distribution

Wrong Answer on testcase 5

// Equal Distribution

#include <bits/stdc++.h>

int main()
    long k, s, b;
    scanf("%ld %ld %ld", &k, &s, &b);

    if ((s+b) % k == 0)
    return 0;