#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; }
By signing up a 追梦算法网 universal account, you can submit code and join discussions in all online judging services provided by us.
Using your 追梦算法网 universal account