- 博客(4)
- 收藏
- 关注
原创 高精度加法
#include<bits/stdc++.h> using namespace std; int main() { char a[100],b[100]; int c[100],d[100],e[100]; int lenc,lend,x,len; memset(c,0,sizeof(c)); memset(d,0,sizeof(d));...
2019-03-11 17:50:15
175
原创 dfs
hdu 1241 oil deposit #include<bits/stdc++.h> using namespace std; char mapp[110][110]; int movee[8][2]={1,0,-1,0,0,1,0,-1,1,1,1,-1,-1,1,-1,-1}; int h,w; void dfs(int x,int y) { int next_x,...
2019-03-11 17:50:03
227
原创 bfs
#include<bits/stdc++.h> using namespace std; int vis[1005][1005]; char mapp[1005][10050]; int step[1005][1005]; int n,m,t,x,y,a,b,c,d; int dir[4][2]={1,0,0,1,-1,0,0,-1}; struct point { int...
2019-03-11 17:49:55
242
原创 快速幂--学习笔记
#define ll long long ll qmod(ll a, ll b) { ll ans=1, tmp = a; while(b) { if( b&1 ) ans*=tmp;//b与1进行按位与运算判断是否为奇数 tmp*=tmp; b>>=1;//b右移一位 } return ...
2018-09-15 15:19:55
151
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅