- 博客(4)
- 收藏
- 关注
原创 The Dominant Color (20)
这题就是找出出现最多次的一个数字而已,但是有一句比较重要的信息,就是这个数字比总数字的数量一半还多, 比如:100个数字,这个数字至少有51个。 所以应用相同累加,不同删除的方法,一次遍历即可把这个数字找出 来。 复杂度只有O(n)时间限制 1000 ms 内存限制 65536 KB 代码长度限制 100 KB 判断程序 Standard (来自 小小)题目描述Behind the scenes in the computer's memory, color is always talk
2016-02-28 13:26:49 530
原创 Are They Equal (25)
Are They Equal (25) 题目大意:根据有效数字判断他们是否相等。 解题关键: 1、首先根据小数点的有无和位置得出相应的指数。 2、再根据去掉小数点的字符串前是否有0来修正指数 3、再根据剩下的字符串和有效数字位数来得到底数If a machine can save only 3 significant digits, the float numbers 12300 and 12358.9 are considered equal since they are both save
2016-02-21 15:03:54 482
原创 Kuchiguse (20)
Kuchiguse (20)给几个字符串,匹配他们尾部的最长子字符串时间限制 1000 ms 内存限制 65536 KB 代码长度限制 100 KB 判断程序 Standard (来自 小小)题目描述The Japanese language is notorious for its sentence ending particles. Personal preference of such part
2016-02-17 22:45:16 428
原创 The Largest Generation (25)
The Largest Generation (25)时间限制 1000 ms 内存限制 65536 KB 代码长度限制 100 KB 判断程序 Standard (来自 小小) 题目描述 A family hierarchy is usually presented by a pedigree tree where all the nodes on the same level bel
2016-02-15 19:38:33 552
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人