
高斯消元
小天位
这个作者很懒,什么都没留下…
展开
-
【高斯消元板子】
#include<stdio.h>///poj 2947当作板子可能更好一下 #include<algorithm> #include<iostream> #include<string.h> #include<math.h> using namespace std; const int MAXN=50; int a[MAXN][MAX...原创 2018-10-31 16:44:38 · 283 阅读 · 0 评论 -
poj 2947 Widget Factory
这几把题意我感觉很变态啊,题意:https://blog.youkuaiyun.com/qingshui23/article/details/52511894 #include <iostream>// 用G++,还有就是不能外挂 #include <cstdio> #include <algorithm> #include <cstring> #inc...原创 2018-10-31 17:43:26 · 173 阅读 · 0 评论 -
poj2065 SETI
首先a…z=1..26,*=0 读入p(模数且为质数),s(下标从0开始),s长度为n 求方程组 https://blog.youkuaiyun.com/Clove_unique/article/details/54381675 #include <iostream> #include <cstdio> #include <cmath> #include ...原创 2018-10-31 18:14:36 · 152 阅读 · 0 评论 -
poj1222开关问题
题意:有一个5 * 6的矩阵,每个位置表示灯,1表示灯亮,0表示灯灭。 然后如果选定位置i,j点击,则位置i,j和其上下左右的灯的状态都会反转。 现在要你求出一个5 * 6的矩阵,1表示这个灯被点击过,0表示没有。 要求这个矩阵能够使得原矩阵的灯全灭。 开始没有理解到说的那个at bt ct 是什么 其实是在A[i][j]按下去的时候他所影响到的 li位置处的状态,这个状态在一个矩阵的M...原创 2018-10-31 18:19:32 · 163 阅读 · 0 评论 -
poj 1830
秩为r 自由元的个数为n-r,那么解的个数就是 1<<(n-r) 打个比方,若一开始为1,最后为0,显然这个开关应该被按,一开始为0,最后也为0,那么这个开关就不能被按。可见是否按这个开关,结果应该是stai⨁endistai⨁endi的值。 https://blog.youkuaiyun.com/acmhonor/article/details/47259481 太菜了: https://b...原创 2018-10-31 18:23:14 · 265 阅读 · 0 评论