测试渲染 Plus
liyifan202201 · · 个人记录
测试渲染!!!
::::info[我是标题] :::info[我是标题] 大家好啊,我是说的道理,今天来点大家想看的东西。 ::: ::::
fff |1 |2 |3 | |:-:|:-:|:-:| |4 |5 |6 |
fff
这时的你欣喜若狂,于是把上面的四个式子相加轻松解出了方程组的解
但是我们换一个方程组
你就不会做了,今天我们就一起来探讨一下多元线性方程组的做法。
1
1
1
1
111 111 111
| 1 | 1 | 1 |
|---|---|---|
| 1 | 1 | 1 |
| 1 | 1 | 1 |
- 1
- 1
- 1
- 2
- 3
111 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;
}
::::info[标题]{open} 内容 :::: ::::warning{open} 内容 :::: ::::success[标题]{open} 内容 :::: ::::error[标题]{open} 内容 ::::
:::epigraph[——otto] 111 :::
:::align{center} 111 :::
:::align{right} 111 :::