摘要: 1 #include <bits/stdc++.h> 2 using namespace std; 3 int n; 4 typedef long long ll; 5 6 void qmi(ll a,ll b,ll q) 7 { 8 ll ans=1; 9 while(b) 10 { 11 if( 阅读全文
posted @ 2022-04-16 15:18 wellerency 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 1.高斯消元解线性方程组: 883. 高斯消元解线性方程组 - AcWing题库 步骤: c=0,r=0 (c是列,r是行) 枚举每一列c 找到c列对应绝对值最大的那一行t 将t行移到r行(目前的顶部) 将转换后的r行c列系数变为1 将大于r的行的c列系数全消为0 1 #include <bits/ 阅读全文
posted @ 2022-04-16 11:00 wellerency 阅读(78) 评论(0) 推荐(0) 编辑