delete pics to save space

This commit is contained in:
2023-08-03 09:22:52 +08:00
commit de60cd6ed4
1334 changed files with 66221 additions and 0 deletions

20
3.39050.cpp Normal file
View File

@ -0,0 +1,20 @@
#include<cstdio>
typedef long long LL;
LL a,b,x,y;
LL exgcd(LL a,LL b,LL &x,LL &y)
{
if(b==0) { x=1; y=0; return a; }
LL d=exgcd(b,a%b,x,y);
LL z=x; x=y; y=z-y*(a/b);
return d;
}
int main()
{
#ifdef local
freopen("pro.in","r",stdin);
#endif
scanf("%lld%lld",&a,&b);
exgcd(a,b,x,y);
printf("%lld %lld\n",x,y);
return 0;
}