#region 获取随机字符串 //digit 最终返回的字符串的长度 public static string BuildCode(int digit) { StringBuilder resultCode = new StringBuilder(); Random ran = new Rando
分类:
其他好文 时间:
2016-03-01 18:51:43
阅读次数:
158
#include<iostream> using namespace std; int mod[20]={1,1,2,6,4,2,2,4,2,8,4,4,8,4,6,8,8,6,8,2}; char s[1010]; //字符串 int num[1010]; //转换为数字 int sovle()
分类:
其他好文 时间:
2016-02-26 20:30:26
阅读次数:
112
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho
分类:
其他好文 时间:
2016-02-25 01:34:28
阅读次数:
123
Description 给定两个正整数a和b,求在[a,b]中的所有整数中,每个数码(digit)各出现了多少次。 Input 输入文件中仅包含一行两个整数a、b,含义如上所述。 Output 输出文件中包含一行10个整数,分别表示0-9在[a,b]中出现了多少次。 数位dp c[i]表示长度为i的
分类:
其他好文 时间:
2016-02-24 13:57:59
阅读次数:
153
/** * Input an array of positive integers, arrange the integers to form new digits, * and output the smallest digit among all the new ones. * Input Ex
分类:
其他好文 时间:
2016-02-23 20:47:20
阅读次数:
265
Given a non-negative integer num, repeatedly add all its digits until the result has only one digit. For example: Given num = 38, the process is like:
分类:
其他好文 时间:
2016-02-22 00:11:27
阅读次数:
154
You have two numbers represented by a linked list, where each node contains a single digit. The digits are stored in reverse order, such that the 1's
分类:
其他好文 时间:
2016-02-21 11:23:13
阅读次数:
120
Given a digit string, return all possible letter combinations that the number could represent. A mapping of digit to letters (just like on the telepho
分类:
其他好文 时间:
2016-02-17 12:42:22
阅读次数:
150
输入一行字符,分别统计出其中英文字母、空格、数字和其他字符的个数。解:程序:#include<stdio.h>intmain(){ charc; intletters=0,space=0,digit=0,other=0; printf("请输入一行字符:"); while((c=getchar())!=‘\n‘) { if(c>=‘a‘&&c<=‘z‘||c>=‘A‘&a..
分类:
编程语言 时间:
2016-02-16 01:15:14
阅读次数:
195
Description A single positive integer i is given. Write a program to find the digit located in the position i in the sequence of number groups S1S2...
分类:
其他好文 时间:
2016-02-12 01:00:30
阅读次数:
228