5 solutions

  • 0
    @ 2024-12-15 11:33:16

    #include <stdio.h>

    int main() { int count=0,a, b, c, x, y; scanf("%d %d %d", &a, &b, &c); for(x=0;x<=10000;x++) { for(y=0;y<=10000;y++) { if((ax+by+c)==0){count++;} } } printf("%d", count); return 0; }

    Information

    ID
    48
    Time
    1000ms
    Memory
    256MiB
    Difficulty
    5
    Tags
    # Submissions
    381
    Accepted
    140
    Uploaded By