- 博客(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 157
转载 html5 外链式实现加减乘除
<!DOCTYPE html><html> <head> <meta charset="utf-8"> <title>加减乘除</title> <script src="a.js"></script>//引用js ...
2019-09-04 10:08:00 231
转载 并查集
↑杭电oj ----1213Accepted12130MS1220K549 BG++#include <cstdio>#include <cstring>using namespace std;int arr[10005];int find(int a){ if(arr[a]==...
2019-04-12 20:54:00 89
转载 快速幂
↑杭电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 89
转载 敌兵布阵 树状数组
↑杭电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 113
转载 最短路
杭电oj ----2544 深 搜Accepted2544327MS1768K635 BC++#include <cstdio>#include <cstring>const int INF=0x3f3f3f3f;int n,m,a,b,c,mp[105...
2019-04-12 14:25:00 116
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人