02 2017 档案
摘要:第一个安卓程序在运行成功的过程中,遇到了一些问题:1.安装方面,sdk安装太慢,重复循环安装成功后,adt安装2.haxm(提高Android模拟器速度)下载3.No resource found that matches the given name 'Theme.AppCompat.Light'...
阅读全文
摘要:第一步:下载虚拟机可以下载VMware虚拟机,这里用的是Vmware12专业版,百度网盘直通车密码:c3mt密钥:5A02H-AU243-TZJ49-GTC7K-3C61N第二部:安装第三部:做一个U盘启动盘或者下载win7镜像镜像地址:http://msdn.itellyou.cn/(win03/...
阅读全文
摘要:内存分配方面: 堆: 操作系统有一个记录空闲内存地址的链表,当系统收到程序的申请时,会遍历该链表,寻找第一个空间大于所申请空间的堆结点,然后将该结点从空闲结点链表中删 除,并将该结点的空间分配给程序,另外,对于大多数系统,会在这块内存空间中的首地址处记录本次分配的大小,这样代码 中的delete语句
阅读全文
摘要:#include using namespace std; const static int N = 102; int map[N][N] = {0}; int mar[N][N] = {0}; int dp(int,int); int row,col; int main() { while(cin>>row>>col) { int i,j; in...
阅读全文
摘要:#include #include #include using namespace std; struct gem{ int w,v; gem():w(0),v(0){}; bool operatorw>a.w; } }; int main() { int v,n; while(cin>>v &&v!=0){ cin>>n; ...
阅读全文
摘要:#include #include using namespace std; bool cmp(const int,const int); int king[3000] = {0}; int tian[3000] = {0}; int main() { int n; while(cin>>n && n!=0){ int tf = 0,te = n-1,ke =...
阅读全文
摘要:#include #include using namespace std; const static int N = 101; int ar[N][N] = {0}; void dp(int,int); int n; int main() { int c;cin>>c; while(c--) { memset(ar,0,sizeof(ar)); ...
阅读全文
摘要:注意:dp[i][j]初始化的时候不能小于0xffffff明显大于2^15但是吧再小就WA了
阅读全文
摘要:思路: 并查集的题,用dfs做的,深搜首字母 注意数据结构,保存字符串的首尾字母即可,最初保存整个字符串,结果memory limit #include #include #include #include using namespace std; struct st{ char f,e; }arr[10000]; bool mar[10000]={0}; void dfs(char)...
阅读全文
摘要:思路: 用数组模拟走廊,搬桌子时将那一段value+1,输出数组最大值即可
阅读全文
摘要:思路: 1.枚举两点确定圆心,大于2不用考虑 2.逐个判断判断距圆心的距离小于1.00001符合题意 这个题,主要在求圆心上废了不少功夫,但是仍存在问题
阅读全文
摘要:java大数判断相等: 1.equals()方法 2.compareTo() 方法区别: 2.00与2.0 equals()方法判断不等,compareTo()方法判断相等.科学的说法可以看java api文档 equals()方法加striptrailingzeros()方法等效于compareT
阅读全文
摘要:java大数做斐波那契数列: 思路:1. 2.可以用数组存着
阅读全文
摘要:java大数取余: 类方法:BigInteger.divideAndRemainder() 返回一个数组,key = 0为商key = 1为余数
阅读全文
摘要:表示看这篇博客后找到了思路: http://blog.csdn.net/queuelovestack/article/details/47291195 补充一下数据,方便观察规律 m LBorderm m-LBorder fibn 1 0 1 1 2 0 2 1 3 1 2 2 4 1 3 3 5
阅读全文
摘要://NYOJ--水池数目 #include #include const int MAX_SIZE{102}; using namespace std; void dfs(int,int); int map[MAX_SIZE][MAX_SIZE]; int main(){ //freopen("input.txt","r",stdin); int N; cin>>N; ...
阅读全文
摘要:按照思路写:深搜,r控制位数,位数为0输出否则递归
阅读全文
摘要:题意,N座城市有N-1条路,目的是找到哪个城市可以到目的城市 //NYOJ--search--吝啬的国度 #include #include #include using namespace std; vector city[100005]; int road[100004]; int N,S; void dfs(int); int main(){ // freopen("in...
阅读全文
摘要:#include #include #include void priTable(); using namespace std; int arr[30]; int main() { int n; priTable(); while(cin>>n && n!=0){ cout<<arr[n-1]<<endl; } return 0; } vo...
阅读全文
摘要:#include #include using namespace std; vector table; void priTable(); int primeNumber(int); int main() { int n; priTable(); while(cin>>n && n!=0){ int count=0; for(vector:...
阅读全文
摘要:#include #include #include struct news{ int lev; int num; bool operator lev==a.lev?this->num>a.num:this->lev>n) { int cut=0; priority_queue q[4]; for(int i...
阅读全文
摘要:#include #include #include using namespace std; int main() { string str; while(getline(cin,str)){ stack s; for(char c:str){ if(!s.empty() &&s.top()=='(' && c==')'...
阅读全文
摘要:#include #include #include #include using namespace std; int main() { double a; while(cin>>a) { char ch; if(a == 0){ if((ch=getchar())== '\n')break; }else getchar(); stack s; while(!s....
阅读全文
摘要:#include #include #include using namespace std; int main() { int N; while(cin>>N && N!=0) { string str; map bal; for(int i=0;i>str; bal[str]++; ...
阅读全文
摘要:#include #include #include using namespace std; int main() { int c; cin>>c; while(c--){ int n,v,w; cin>>n>>v>>w; vector vec; for(int i=0;i>temp; ...
阅读全文
摘要:#include #include using namespace std; int main() { int n; while(cin>>n){ vector vec; for(int i=0;i>temp; vec.push_back(temp); } vector boom; ...
阅读全文
摘要:主要思路: 十进制为例个位:10百位:10*10千位:10^3 那么这个题就是:个位:2百位:2*3千位:2*3*5 算法: 1.将输入转化为10进制 2.计算 3.转化为火星文输出 4.over
阅读全文

浙公网安备 33010602011771号