摘要:
#include<bits/stdc++.h> #define int long long using namespace std; const int maxn=110,maxm=110,m=1e9+7; int n,p,sz; struct mat{ int a[maxn][maxm]; mat 阅读全文
posted @ 2025-08-09 15:20
_dlwlrma
阅读(5)
评论(0)
推荐(0)
摘要:
哈希 略 KMP 求next数组 ne[1]=0; for(int i=2,j=0;i<=n;i++){//i表示当前搜索位置,不回溯,j扫描前缀 while(j&&p[i]!=p[j+1]) j=ne[j]; if(p[i]==p[j+1]) j++; ne[i]=j; } example AC自 阅读全文
posted @ 2025-08-09 15:16
_dlwlrma
阅读(11)
评论(0)
推荐(0)
摘要:
高斯消元 const double zero=1e-6;//注意精度 int n; double a[maxn][maxn]; int gs(){ int c,line,pai=0; for(c=1;c<=n;c++){ line=c; for(int i=1;i<=n;i++){//找第i排第c项 阅读全文
posted @ 2025-08-09 15:14
_dlwlrma
阅读(7)
评论(0)
推荐(0)

浙公网安备 33010602011771号