- 博客(6)
- 收藏
- 关注
转载 洛谷 p1010 幂次方
#include <cstdio> #include <cmath> using namespace std; void dg(int n) { int a; if(n==0) return; for(int i=0;i<=15;i++) //求出n以内2最大的a次方 { a=i...
2019-09-05 21:17:00 154
转载 html5 外链式实现加减乘除
<!DOCTYPE html> <html> <head> <meta charset="utf-8"> <title>加减乘除</title> <script src="a.js"></script>//引用js ...
2019-09-04 10:08:00 226
转载 并查集
↑杭电oj ----1213 Accepted 1213 0MS 1220K 549 B G++ #include <cstdio> #include <cstring> using namespace std; int arr[10005]; int find(int a){ if(arr[a]==...
2019-04-12 20:54:00 86
转载 快速幂
↑杭电oj ----1061 #include <cstdio>#include <cstring>using namespace std;int ksm(int n,int m){ int res=1; while(m!=0) { if(m&1) res=res*n%10; ...
2019-04-12 20:08:00 86
转载 敌兵布阵 树状数组
↑杭电oj ----1166 #include <cstdio>#include <cstring>using namespace std;const int MAXN=50005;int c[MAXN],t,i,a,b,n,k;int lowbit(int id){ return id&-id;}void add(in...
2019-04-12 16:40:00 112
转载 最短路
杭电oj ----2544 深 搜 Accepted 2544 327MS 1768K 635 B C++ #include <cstdio> #include <cstring> const int INF=0x3f3f3f3f; int n,m,a,b,c,mp[105...
2019-04-12 14:25:00 113
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人