码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
66. Plus One
Given a non-negative integer represented as a non-empty array of digits, plus one to the integer. You may assume the integer do not contain any leadin ...
分类:其他好文   时间:2018-01-20 18:51:20    阅读次数:164
CodeForces - 538B
A number is called quasibinary if its decimal representation contains only digits 0 or 1. For example, numbers 0, 1, 101, 110011 — are quasibinary and ...
分类:其他好文   时间:2018-01-19 23:30:11    阅读次数:202
7. Reverse Integer
Given a 32-bit signed integer, reverse digits of an integer. Example 1: Example 2: Example 3: Note:Assume we are dealing with an environment which cou ...
分类:其他好文   时间:2018-01-17 11:27:42    阅读次数:132
1082. Read Number in Chinese (25)
Given an integer with no more than 9 digits, you are supposed to read it in the traditional Chinese way. Output "Fu" first if it is negative. For exam ...
分类:其他好文   时间:2018-01-17 00:36:12    阅读次数:170
[leetcode-738-Monotone Increasing Digits]
Given a non-negative integer N, find the largest number that is less than or equal to N with monotone increasing digits. (Recall that an integer has m ...
分类:其他好文   时间:2018-01-15 00:26:59    阅读次数:226
【Educational Codeforces Round 36 C】 Permute Digits
【链接】 "我是链接,点我呀:)" 【题意】 在这里输入题意 【题解】 //从大到小枚举第i(1..len1)位 //剩余的数字从小到大排序。 //看看组成的数字是不是小于等于b //如果是的话。 //说明第i位就是选这个数字了。 //接下来枚举下一位。 【代码】 cpp include defin ...
分类:其他好文   时间:2018-01-14 10:56:27    阅读次数:94
2. Add Two Numbers
You are given two non-empty linked lists representing two non-negative integers. The digits are stored in reverse order and each of their nodes contai ...
分类:其他好文   时间:2018-01-13 00:18:36    阅读次数:112
light oj 1045 - Digits of Factorial(求阶乘在不同进制下的位数)
Factorial of an integer is defined by the following function f(0) = 1 f(n) = f(n - 1) * n, if(n > 0) So, factorial of 5 is 120. But in different bases ...
分类:其他好文   时间:2018-01-06 16:03:03    阅读次数:159
PAT 1005. Spell It Right
PAT 1005. Spell It Right (20) Given a non negative integer N, your task is to compute the sum of all the digits of N, and output every digit of the su ...
分类:其他好文   时间:2018-01-04 00:25:00    阅读次数:156
PAT 1001. A+B Format
PAT 1001. A+B Format Calculate a + b and output the sum in standard format that is, the digits must be separated into groups of three by commas (unles ...
分类:其他好文   时间:2018-01-02 11:31:14    阅读次数:170
2164条   上一页 1 ... 54 55 56 57 58 ... 217 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!