摘要:
1103 Integer Factorization (30分) The K − P factorization of a positive integer N is to write N as the sum of the P th power of K positive integers. Yo 阅读全文
摘要:
1052 Linked List Sorting (25分) A linked list consists of a series of structures, which are not necessarily adjacent in memory. We assume that each str 阅读全文
摘要:
1032 Sharing (25分) To store English words, one method is to use linked lists and store a word letter by letter. To save some space, we may let the wor 阅读全文
摘要:
1054 The Dominant Color (20分) Behind the scenes in the computer's memory, color is always talked about as a series of 24 bits of information for each 阅读全文
摘要:
1001 A+B Format (20分) Calculate a + b and output the sum in standard format that is, the digits must be separated into groups of three by commas (unle 阅读全文
摘要:
1008 Elevator 题目: The highest building in our city has only one elevator. A request list is made up with N positive numbers. The numbers denote at whi 阅读全文
摘要:
C++:map用法 一、map基本用法 键值对 第一个参数为键的类型,第二个参数为值的类型。 源代码 C++ include include using namespace std; int main(){ map table; table[1]=1; cout 运行结果: 2. map内元素值为常 阅读全文