测试渲染!!!
1
1
1
1
111 111 111
| 1 | 1 | 1 |
|---|---|---|
| 1 | 1 | 1 |
| 1 | 1 | 1 |
- 1
- 1
- 1
- 2
- 3
111 111
# include <bits/stdc++.h>
using namespace std;
typedef long long LL;
const int N = 1e4 + 10 , p = 19260817;
LL a , b , x , y;
string s;
LL exgcd(LL a , LL b , LL& x , LL& y)
{
if(!b) return x = 1 , y = 0 , a;
LL g = exgcd(b , a % b , y , x);
y -= a / b * x;
return g;
}
void solve()
{
cin >> s;
for(const char& c : s) ((a *= 10) += c - '0') %= p;
cin >> s;
for(const char& c : s) ((b *= 10) += c - '0') %= p;
if(b)
{
LL g = exgcd(b , p , x , y);
cout << ((x % p + p) % p * (a / g)) % p;
}
else cout << "Angry!";
return ;
}
int main()
{
ios::sync_with_stdio(0);
cin.tie(0), cout.tie(0);
int q = 1;
while(q --) solve();
return 0;
}标题
内容
标题
内容
标题
内容
标题
内容
111
111
111