摘要: 题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=456&page=show_problem&problem=2275刘汝佳《算法竞赛入门经典训练指南 1.1例3 1 ///2014.4.12 2 ///uva11300 3 ///刘汝佳《算法竞赛入门经典训练指南 1.1例3 4 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 11 using namespace 阅读全文
posted @ 2014-04-12 22:16 basement_boy 阅读(143) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=456&page=show_problem&problem=2829刘汝佳《算法竞赛入门经典训练指南 1.1例2表示uva这么卡,让人怎么受得了。。。 1 ///2014.4.12 2 ///uva11729 3 ///刘汝佳《算法竞赛入门经典训练指南 1.1例2 4 5 #include 6 #include 7 #include 8 #include 9 #include 10 #include 阅读全文
posted @ 2014-04-12 17:10 basement_boy 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=2267刘汝佳《算法竞赛入门经典训练指南》1.1例1 1 ///2014.4.12 2 ///uva11292 3 4 #include 5 #include 6 #include 7 #include 8 #include 9 using namespace std;10 11 #define maxn 2001012 int n,m;13 int A[maxn],B[m 阅读全文
posted @ 2014-04-12 11:31 basement_boy 阅读(83) 评论(0) 推荐(0) 编辑
摘要: 题目链接:http://poj.org/problem?id=2661吴永辉《算法设计编程实验》1.1.1 1 ///2014.4.12 2 ///poj2661 3 4 #include 5 #include 6 #include 7 #include 8 using namespace std; 9 10 int main()11 {12 // freopen("in","r",stdin);13 // freopen("out","w",stdout);14 15 int a;16 while( cin> 阅读全文
posted @ 2014-04-12 11:01 basement_boy 阅读(157) 评论(0) 推荐(0) 编辑