上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页
摘要: 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 阅读全文
posted @ 2020-01-27 17:04 musecho 阅读(359) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-01-26 17:59 musecho 阅读(241) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-01-26 11:21 musecho 阅读(342) 评论(1) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-01-22 19:52 musecho 阅读(152) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-01-22 19:51 musecho 阅读(218) 评论(0) 推荐(0) 编辑
摘要: 二分排序和二分查找 一、二分查找 二、二分排序 参考: https://www.jianshu.com/p/677359c1cc15 代码: 注意 二分排序与二分查找的区别: 两者的while循环内部不同,二分排序中判定相等不需要跳出循环 【二分排序】跳出循环后下标low标识关键元素需要插入的位置。 阅读全文
posted @ 2019-12-21 15:21 musecho 阅读(5707) 评论(0) 推荐(1) 编辑
摘要: 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 阅读全文
posted @ 2019-12-17 19:33 musecho 阅读(201) 评论(0) 推荐(0) 编辑
摘要: C++:基本类型的转换 一、string转为int 【参考:https://blog.csdn.net/m0_37316917/article/details/82712017】 C++ string pp = "dagah"; cout (二)const char 指针遍历string,元素依次赋 阅读全文
posted @ 2019-12-06 17:32 musecho 阅读(334) 评论(0) 推荐(0) 编辑
摘要: C++:map用法 一、map基本用法 键值对 第一个参数为键的类型,第二个参数为值的类型。 源代码 C++ include include using namespace std; int main(){ map table; table[1]=1; cout 运行结果: 2. map内元素值为常 阅读全文
posted @ 2019-12-06 16:56 musecho 阅读(7939) 评论(0) 推荐(1) 编辑
摘要: 编译时报错 : fatal error LNK1169: 找到一个或多个多重定义的符号 解答: 发生这种错误就是在一个项目定义了多个main函数的问题。 C++中一个项目即一个程序,多个文件只能有一个main函数。 p.s:Java多个文件可以有多个main函数。 阅读全文
posted @ 2019-12-05 16:16 musecho 阅读(2906) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页