摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
1025. PAT Ranking (25)Programming Ability Test (PAT) is organized by the College of Computer Science and Technology of Zhejiang University. Each test ... 阅读全文
摘要:
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... 阅读全文
摘要:
1020. Tree Traversals (25)Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequenc... 阅读全文
摘要:
C++ STL之deque学习记录头文件#include简介参见http://www.cplusplus.com/reference/deque/deque/Double ended queue(双向队列)deque(usually pronounced like"deck") is an irre... 阅读全文
摘要:
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... 阅读全文
摘要:
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... 阅读全文
摘要:
本文实现了一个多项式的类,类中重载了多项式的加法、减法、乘法,并且对>> 和 3 #include 4 #include 5 6 class polynomial 7 { 8 private: 9 std::vector coefficient; 10 std:... 阅读全文