也是简单的石大校赛题,题目废话较多,就是求最小公倍数。由于涉及多个数,so写在函数里。//beginTaozifish是曾经的算法部部长,ACM俱乐部队长,带领大家拿过亚洲区域赛银牌、铜牌和省赛一等奖若干。2013年本科毕业之后以16W年薪入职百度核心部门搜索研发部。经过一段时间的努力,很快就在百度...
分类:
其他好文 时间:
2015-03-02 20:48:40
阅读次数:
158
目录目录
题目
思路1
AC代码
缺陷
思路2
AC代码题目
Design a stack that supports push, pop, top, and retrieving the minimum element in constant time.
push(x) – Push element x onto stack.
pop() – Removes the ele...
分类:
其他好文 时间:
2015-03-02 13:08:54
阅读次数:
141
Partition ListGiven a linked list and a value x, partition it such that all nodes less than x come before nodes greater than or equal to x.You should ...
分类:
其他好文 时间:
2015-02-28 00:09:16
阅读次数:
114
题目链接:http://codeforces.com/problemset/problem/518/B题目意思:给出字符串 s 和 t,如果 t 中有跟 s 完全相同的字母,数量等于或者多过 s,就将 s 这个数量加到 YAY! 的答案里,少于的话就加t 中有的数量;如果 t 中有跟 s 相同的字母...
分类:
其他好文 时间:
2015-02-26 13:11:25
阅读次数:
128
Time Limit:2000MS Memory Limit:65536KBDescriptionGiven a string consisting of brackets of two types find its longest substring that is a regular brack...
use stringstreamTime Limit:3000MS Memory Limit:0KBDescriptionAndy, 8, has a dream - he wants to produce his very own dictionary. This is not an easy t...
Time Limit:3000MS Memory Limit:0KBDescriptionBackgroundMany areas of Computer Science use simple, abstract domains for both analytical and empirical s...
Time Limit:3000MS Memory Limit:0KBDescriptionQueues and Priority Queues are data structures which are known to most computer scientists. The Team Queu...
Time Limit:3000MS Memory Limit:0KBDescriptionMost crossword puzzle fans are used to anagrams--groups of words with the same letters in different order...
Time Limit:3000MS Memory Limit:0KBDescriptionDownload as PDFRaju and Meena love to play with Marbles. They have got a lot of marbles with numbers writ...