![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
STL
ZXX_1999
这个作者很懒,什么都没留下…
展开
-
1074 Reversing Linked List (25 分)
1074Reversing Linked List(25分) Given a constantKand a singly linked listL, you are supposed to reverse the links of everyKelements onL. For example, givenLbeing 1→2→3→4→5→6, ifK=3, then y...原创 2019-11-07 11:03:00 · 107 阅读 · 0 评论 -
1056 Mice and Rice (25 分) queue
1056Mice and Rice(25分) Mice and Riceis the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given map. The goal of each m...原创 2019-11-07 00:35:12 · 112 阅读 · 0 评论 -
1051 Pop Sequence (25 分) stack,注意pop前一定要判空,并且最后确定栈内被pop空了
1051Pop Sequence(25分) Given a stack which can keepMnumbers at most. PushNnumbers in the order of 1, 2, 3, ...,Nand pop randomly. You are supposed to tell if a given sequence of numbers is a ...原创 2019-11-05 23:53:32 · 130 阅读 · 0 评论 -
1063 Set Similarity (25 分) set注意查询从1到q所以输入的时候也要从1到n
1063Set Similarity(25分) Given two sets of integers, the similarity of the sets is defined to beNc/Nt×100%, whereNcis the number of distinct common numbers shared by the two sets, andN...原创 2019-11-05 14:35:08 · 106 阅读 · 0 评论 -
1047 Student List for Course (25 分) vector+sort
1047Student List for Course(25分) Zhejiang University has 40,000 students and provides 2,500 courses. Now given the registered course list of each student, you are supposed to output the student na...原创 2019-11-03 19:58:45 · 92 阅读 · 0 评论 -
1039 Course List for Student (25 分)
1039Course List for Student(25分) Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the registered co...原创 2019-11-02 13:26:04 · 99 阅读 · 0 评论 -
1060 Are They Equal (25 分)科学计数法,stl中string的各种函数用法
1060Are 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 saved as0.123×105with simple chopping. Now...原创 2019-10-30 20:39:52 · 114 阅读 · 0 评论