MCPcopy Create free account
hub / github.com/acm-clan/algorithm-stone / main

Function main

user/codeforces/7C.Line.cpp:22–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20}
21
22int main()
23{
24
25 scanf("%lld%lld%lld",&a,&b,&c);
26 c=-c;
27 long long d=kzo(a,b);
28 if(c%d!=0)
29 {
30 printf("-1\n");
31 return 0;
32 }
33 x=c/d*x,y=c/d*y;
34 printf("%lld %lld\n",x,y);
35
36 return 0;
37}

Callers

nothing calls this directly

Calls 1

kzoFunction · 0.85

Tested by

no test coverage detected