码迷,mamicode.com
首页 >  
搜索关键字:positive    ( 2430个结果
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 = p?1???k?1????×p?2???k?2????×?×p?m??? ...
分类:其他好文   时间:2018-08-25 11:44:28    阅读次数:164
【PAT】1020 Tree Traversals (25)(25 分)
Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ou ...
分类:其他好文   时间:2018-08-24 21:46:35    阅读次数:197
Divide by Three CodeForces - 792C
A positive integer number n is written on a blackboard. It consists of not more than 105 digits. You have to transform it into a beautiful number by e ...
分类:其他好文   时间:2018-08-24 02:01:55    阅读次数:158
BigDecimal工具类
public class BigDecimalUtil { private static int DEF_DIV_SCALE = 10; // 默认精确的小数位 /** * 提供精确的加法运算。 * * @param v1 被加数 * @param v2 加数 * @return 两个参数的和 */... ...
分类:其他好文   时间:2018-08-22 18:29:06    阅读次数:199
556. Next Greater Element III下一个更大的数字
[抄题]: Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing in the integer n and ...
分类:其他好文   时间:2018-08-21 22:40:44    阅读次数:313
[Math_Medium] 869. Reordered Power of 2
"原题:869. Reordered Power of 2" Starting with a positive integer N, we reorder the digits in any order (including the original order) such that the lea ...
分类:其他好文   时间:2018-08-21 21:45:11    阅读次数:150
[LeetCode] 367. Valid Perfect Square_Easy tag:Math
Given a positive integer num, write a function which returns True if num is a perfect square else False. Note: Do not use any built-in library functio ...
分类:其他好文   时间:2018-08-21 15:11:23    阅读次数:132
Subsequence(POJ 3061)
原题如下: Subsequence Time Limit: 1000MS Memory Limit: 65536K Total Submissions: 21032 Accepted: 8975 Description A sequence of N positive integers (10 < ...
分类:其他好文   时间:2018-08-21 10:41:38    阅读次数:162
1007 Maximum Subsequence Sum (25)(25 分)
Given a sequence of K integers { N~1~, N~2~, ..., N~K~ }. A continuous subsequence is defined to be { N~i~, N~i+1~, ..., N~j~ } where 1 <= i <= j <= K ...
分类:其他好文   时间:2018-08-21 01:04:37    阅读次数:186
PAT 1103 Integer Factorization[难]
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. You are supposed to write a program t ...
分类:其他好文   时间:2018-08-21 00:27:26    阅读次数:165
2430条   上一页 1 ... 54 55 56 57 58 ... 243 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!