摘要:        
优先队列的基本运用……#include #include #include using namespace std; struct Message { char Name[100]; int Data,Priority,index; friend bool ...    阅读全文
posted @ 2014-04-16 16:44
forever97
阅读(192)
评论(0)
推荐(0)
        
            
        
        
摘要:        
模拟题,学了一下listit=li.erase(it):指向删除后的第一个元素#include #include using namespace std;listli;list::iterator it;int main(){ int cas,n; scanf("%d",&cas); ...    阅读全文
posted @ 2014-04-16 16:20
forever97
阅读(460)
评论(0)
推荐(0)
        
            
        
        
摘要:        
题解:直接建n个栈,模拟过程即可……#include #include #include using namespace std; int main(){ int n,n2,a,ar[105],cas=1; bool rs[105]; char str[105]; ...    阅读全文
posted @ 2014-04-16 15:59
forever97
阅读(222)
评论(0)
推荐(0)
        
            
        
        
摘要:        
高一时打过,做了整整一个晚上,现在看到计算器的题目就头疼,从网上找了一个,修修改改了一下……#include #include #include using namespace std;char Precede(char a,char b){ if(a=='+'||a=='-'){ ...    阅读全文
posted @ 2014-04-16 15:46
forever97
阅读(191)
评论(0)
推荐(0)
        
            
        
        
摘要:        
栈的基本操作……#include #include #include using namespace std;char in[100],out[100];int flag[200];int main(){ int n,top,i,j,k,bo; while(scanf("%d",&n)!...    阅读全文
posted @ 2014-04-16 15:31
forever97
阅读(138)
评论(0)
推荐(0)
        
            
        
        
摘要:        
题解:栈和队列的基本运用,熟练一下STL。#include #include #include using namespace std;int main(){ int t; scanf("%d",&t); while(t--){ int n,m; str...    阅读全文
posted @ 2014-04-16 15:02
forever97
阅读(181)
评论(0)
推荐(0)
        
            
        
        
摘要:        
题目大意:求有n个节点的树有几种? 题解:http://www.cnblogs.com/keam37/p/3639294.html    阅读全文
posted @ 2014-04-16 14:49
forever97
阅读(380)
评论(0)
推荐(0)
        

 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号