测试渲染 Plus

· · 个人记录

测试渲染!!!

::::info[我是标题] :::info[我是标题] 大家好啊,我是说的道理,今天来点大家想看的东西。 ::: ::::

E=mc^2 114514 \begin{pmatrix} 1 & 2 \\ 3 & 4 \end{pmatrix}

fff |1 |2 |3 | |:-:|:-:|:-:| |4 |5 |6 |

fff

这时的你欣喜若狂,于是把上面的四个式子相加轻松解出了方程组的解

\begin{cases} x_1=-1\\ x_2=0\\ x_3=1\\ x_4=2 \end{cases}

但是我们换一个方程组

\begin{cases} x_1+x_2+x_3+x_4=10\\ x_1+2x_2+3x_3+4x_4=30\\ 2x_1+x_2+x_3+3x_4=20\\ 4x_1+4x_2+5x_3+8x_4=60 \end{cases}

你就不会做了,今天我们就一起来探讨一下多元线性方程组的做法。

1

1

1

1

111 111 111

E=mc^2 \sum^{i=1}_{i\le n}a_i
1 1 1
1 1 1
1 1 1
  1. 1
  2. 2
  3. 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 :::