上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: 1035. Password (20)To prepare for PAT, the judge sometimes has to generate random passwords for the users. The problem is that there are always some c... 阅读全文
posted @ 2015-08-11 13:46 JackWang822 阅读(191) 评论(0) 推荐(0) 编辑
摘要: 1029. Median (25)Given an increasing sequence S of N integers, themedianis the number at the middle position. For example, the median of S1={11, 12, 1... 阅读全文
posted @ 2015-08-07 23:47 JackWang822 阅读(181) 评论(0) 推荐(0) 编辑
摘要: 1028. List Sorting (25)Excel can sort records according to any column. Now you are supposed to imitate this function.InputEach input file contains one... 阅读全文
posted @ 2015-08-07 21:22 JackWang822 阅读(216) 评论(0) 推荐(0) 编辑
摘要: 1025. PAT Ranking (25)Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test ... 阅读全文
posted @ 2015-08-07 13:14 JackWang822 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 1024. Palindromic Number (25)A number that will be the same when it is written forwards or backwards is known as a Palindromic Number. For example, 12... 阅读全文
posted @ 2015-08-07 11:23 JackWang822 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 1020. Tree Traversals (25)Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequenc... 阅读全文
posted @ 2015-08-07 00:19 JackWang822 阅读(184) 评论(0) 推荐(0) 编辑
摘要: C++ STL之deque学习记录头文件#include简介参见http://www.cplusplus.com/reference/deque/deque/Double ended queue(双向队列)deque(usually pronounced like"deck") is an irre... 阅读全文
posted @ 2015-08-06 22:51 JackWang822 阅读(330) 评论(0) 推荐(0) 编辑
摘要: 1013. Battle Over Cities (25)It is vitally important to have all the cities connected by highways in a war. If a city is occupied by the enemy, all th... 阅读全文
posted @ 2015-08-05 20:04 JackWang822 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 1012. The Best Rank (25)To evaluate the performance of our first year CS majored students, we consider their grades of three courses only: C - C Progr... 阅读全文
posted @ 2015-08-04 20:58 JackWang822 阅读(235) 评论(0) 推荐(0) 编辑
摘要: 本文实现了一个多项式的类,类中重载了多项式的加法、减法、乘法,并且对>> 和 3 #include 4 #include 5 6 class polynomial 7 { 8 private: 9 std::vector coefficient; 10 std:... 阅读全文
posted @ 2015-08-03 20:53 JackWang822 阅读(1010) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 下一页