This documentation is automatically generated by online-judge-tools/verification-helper
#include "math/extGCD.hpp"
#pragma once
#include<bits/stdc++.h>
using namespace std;
pair<long long, long long> extgcd(long long a, long long b) {
if (b == 0) return make_pair(1, 0);
long long x, y;
tie(y, x) = extgcd(b, a % b);
y -= a / b * x;
return make_pair(x, y);
}
#line 2 "math/extGCD.hpp"
#include<bits/stdc++.h>
using namespace std;
pair<long long, long long> extgcd(long long a, long long b) {
if (b == 0) return make_pair(1, 0);
long long x, y;
tie(y, x) = extgcd(b, a % b);
y -= a / b * x;
return make_pair(x, y);
}