Using each of the digits 1, 2, 3,...,D1 exactly once to form D1 digit numbers, how many are divisible by D2. 输入 The input data will contain multiple c ...
分类:
其他好文 时间:
2019-09-22 15:24:53
阅读次数:
98
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 ...
分类:
其他好文 时间:
2019-09-19 23:36:49
阅读次数:
95
Additive number is a string whose digits can form additive sequence. A valid additive sequence should contain at least three numbers. Except for the f ...
分类:
其他好文 时间:
2019-09-19 14:22:15
阅读次数:
86
17. Letter Combinations of a Phone Number Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number ...
分类:
其他好文 时间:
2019-09-18 09:17:11
阅读次数:
85
131072K A digit sum S_b(n)Sb?(n) is a sum of the base-bb digits of nn. Such as S_{10}(233) = 2 + 3 + 3 = 8 S10?(233)=2+3+3=8, S_{2}(8)=1 + 0 + 0 = 1S2 ...
分类:
其他好文 时间:
2019-09-16 21:15:28
阅读次数:
113
A digit sum S_b(n)Sb?(n) is a sum of the base-bb digits of nn. Such as S_{10}(233) = 2 + 3 + 3 = 8S10?(233)=2+3+3=8, S_{2}(8)=1 + 0 + 0 = 1S2?(8)=1+0+ ...
分类:
其他好文 时间:
2019-09-16 19:23:39
阅读次数:
102
C. Permute Digits time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output You are given two posit ...
分类:
其他好文 时间:
2019-09-16 10:03:05
阅读次数:
109
给定 $n$ 个两两不同的正整数 $a_1, a_2, \dots, a_n$,$a_i Let the length of a number be the number of digits needed to write it out in binary, excluding any leadin ...
分类:
其他好文 时间:
2019-09-16 09:31:57
阅读次数:
74
题意 给你一个序列 问你能否选出两个序列 然后拼接 是他们成为有序的序列 输出方案 解: 说下我的思路 开始我吧题目看错了以为求的是单调递减的。。。 这题考的是贪心加观察 后来才发现 然后我又试了lis 树状数组 都不行 最后我发现对于一个序列 最终状态一定是有序的 那么我们不妨对于这个序列首先进行 ...
分类:
其他好文 时间:
2019-09-16 09:18:18
阅读次数:
60
17. Letter Combinations of a Phone Number Medium Medium Given a string containing digits from 2-9 inclusive, return all possible letter combinations t ...
分类:
其他好文 时间:
2019-09-14 11:24:10
阅读次数:
108