上一页 1 ··· 3 4 5 6 7 8 9 10 下一页
摘要: 1063. Set Similarity (25)Given two sets of integers, the similarity of the sets is defined to be Nc/Nt*100%, where Ncis the number of distinct common ... 阅读全文
posted @ 2015-08-13 21:23 JackWang822 阅读(267) 评论(0) 推荐(0) 编辑
摘要: 1062. Talent and Virtue (25)About 900 years ago, a Chinese philosopher Sima Guang wrote a history book in which he talked about people's talent and vi... 阅读全文
posted @ 2015-08-13 13:16 JackWang822 阅读(133) 评论(0) 推荐(0) 编辑
摘要: 1 #include 2 #include 3 4 using namespace std; 5 6 int main() 7 { 8 string s1, s2, s3, s4; 9 cin >> s1 >> s2 >> s3 >> s4;10 string d... 阅读全文
posted @ 2015-08-13 12:41 JackWang822 阅读(112) 评论(0) 推荐(0) 编辑
摘要: 1060. Are They Equal (25)If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both... 阅读全文
posted @ 2015-08-13 11:56 JackWang822 阅读(147) 评论(0) 推荐(0) 编辑
摘要: 1059. Prime Factors (25)Given any positive integer N, you are supposed to find all of its prime factors, and write them in the format N = p1^k1* p2^k2... 阅读全文
posted @ 2015-08-12 22:04 JackWang822 阅读(168) 评论(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 stru... 阅读全文
posted @ 2015-08-12 15:04 JackWang822 阅读(118) 评论(0) 推荐(0) 编辑
摘要: 1051. Pop Sequence (25)Given a stack which can keep M numbers at most. Push N numbers in the order of 1, 2, 3, ..., N and pop randomly. You are suppos... 阅读全文
posted @ 2015-08-12 15:03 JackWang822 阅读(186) 评论(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 word... 阅读全文
posted @ 2015-08-12 11:32 JackWang822 阅读(184) 评论(0) 推荐(0) 编辑
摘要: 1034. Head of a Gang (30)One way that the police finds the head of a gang is to check people's phone calls. If there is a phone call between A and B, ... 阅读全文
posted @ 2015-08-12 10:47 JackWang822 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1038. Recover the Smallest Number (30)Given a collection of number segments, you are supposed to recover the smallest number from them. For example, g... 阅读全文
posted @ 2015-08-11 19:40 JackWang822 阅读(145) 评论(0) 推荐(0) 编辑
上一页 1 ··· 3 4 5 6 7 8 9 10 下一页