码迷,mamicode.com
首页 >  
搜索关键字:digits    ( 2164个结果
Lightoj1205——Palindromic Numbers(数位dp+回文数)
A palindromic number or numeral palindrome is a ‘symmetrical’ number like 16461 that remains the same when its digits are reversed. In this problem yo ...
分类:其他好文   时间:2017-08-20 18:20:45    阅读次数:161
python 生成动态密码
import stringimport randomdef gen_psd(length=10): """length is password length""" letters = string.ascii_lowercase + string.digits times = length/len( ...
分类:编程语言   时间:2017-08-19 20:03:01    阅读次数:224
leetcode--(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 ...
分类:其他好文   时间:2017-08-19 15:05:11    阅读次数:163
树——sum-root-to-leaf-numbers(根到叶节点数字之和)
问题: Given a binary tree containing digits from0-9only, each root-to-leaf path could represent a number. An example is the root-to-leaf path1->2->3whic ...
分类:其他好文   时间:2017-08-18 14:31:04    阅读次数:209
#leetcode#Sum Root to Leaf Numbers
Given a binary tree containing digits from 0-9 only, each root-to-leaf path could represent a number. An example is the root-to-leaf path 1->2->3 whic ...
分类:其他好文   时间:2017-08-16 20:20:18    阅读次数:216
CF 489 C Given Length and Sum of Digits... 贪心
题目链接:http://codeforces.com/problemset/problem/489/C 题目大意:给定位数和各个位的和,问满足条件数字的最大值,最小值。 解题思路:模拟即可。主要是细节判断。 代码: 题目: C. Given Length and Sum of Digits... t ...
分类:其他好文   时间:2017-08-16 18:23:37    阅读次数:203
hdu4333 Revolving Digits 扩展kmp
/** 参考:http://blog.csdn.net/acdreamers/article/details/8313828 参考:http://www.61mon.com/index.php/archives/186/ 题目:hdu4333 Revolving Digits 链接:http://a... ...
分类:其他好文   时间:2017-08-13 12:19:25    阅读次数:127
423. Reconstruct Original Digits from English (leetcode)
Given a non-empty string containing an out-of-order English representation of digits 0-9, output the digits in ascending order. Note: Example 1: Examp ...
分类:其他好文   时间:2017-08-10 22:28:33    阅读次数:208
UVA - 10591 Happy Number
Happy Number UVA - 10591 Let the sum of the square of the digits of a positive integer S0 be represented by S1. In a similar way, let the sum of the s ...
分类:移动开发   时间:2017-08-10 17:04:00    阅读次数:240
7. Reverse Integer 翻转整型
Reverse digits of an integer.Example1: x = 123, return 321Example2: x = -123, return -321click to show spoilers.Have you thought about this?Here are s... ...
分类:其他好文   时间:2017-08-10 01:10:18    阅读次数:138
2164条   上一页 1 ... 65 66 67 68 69 ... 217 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!