摘要: 熟用经典函数可让问题得到简化。。特别是正式需要用得时候能省下很多事情。比如下面的例题:在执行栈和队列的操作时,,我们需要通过不同的方式,好比链表重新建立往往浪费了时间——无效。。。#include <stdio.h> #include <stdlib.h> #include <string.h> #include <math.h> #include <queue> using namespace std; queue<int> q; int main() { int n,t; scanf( "%d" , 阅读全文
posted @ 2011-12-09 23:00 Maki Horikita 阅读(147) 评论(0) 推荐(0)
摘要: 样例输入:4 23 410 12 28 12816 12345样例输出:127512325536358#include<stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#include <queue>using namespace std;const int MAXD = 20;int s[1<<MAXD] ;int main(){ int D,I; while( scanf( "%d%d" , &D , &I 阅读全文
posted @ 2011-12-09 22:44 Maki Horikita 阅读(283) 评论(0) 推荐(0)