【题目分析】 劳逸结合好了。 杨辉三角+暴搜。 【代码】 ...
分类:
其他好文 时间:
2017-01-15 19:11:46
阅读次数:
182
Description 给定两个正整数a和b,求在[a,b]中的所有整数中,每个数码(digit)各出现了多少次。 Input 输入文件中仅包含一行两个整数a、b,含义如上所述。 Output 输出文件中包含一行10个整数,分别表示0-9在[a,b]中出现了多少次。 Sample Input 1 9 ...
分类:
其他好文 时间:
2017-01-14 22:52:40
阅读次数:
240
Description 给定两个正整数a和b,求在[a,b]中的所有整数中,每个数码(digit)各出现了多少次。 Input 输入文件中仅包含一行两个整数a、b,含义如上所述。 Output 输出文件中包含一行10个整数,分别表示0-9在[a,b]中出现了多少次。 Sample Input 1 9 ...
分类:
其他好文 时间:
2017-01-13 08:59:40
阅读次数:
196
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 sum in English. Input Specificat ...
分类:
其他好文 时间:
2017-01-12 11:27:58
阅读次数:
178
public class PassWordUtil { static String regex_number = "[\\p{Digit}]+";// 数字 static String regex_lower = "[\\p{Lower}]+";// 正则表达式 密码:小写字母 static Str... ...
分类:
其他好文 时间:
2017-01-10 11:37:57
阅读次数:
212
关于罗马数字: I: 1V: 5X: 10L: 50C: 100D: 500M: 1000字母可以重复,但不超过三次,当需要超过三次时,用与下一位的组合表示:I: 1, II: 2, III: 3, IV: 4C: 100, CC: 200, CCC: 300, CD: 400 提取每一位digit ...
分类:
其他好文 时间:
2016-12-27 09:46:40
阅读次数:
190
#include #include int sign(int x); double even(int n); int prime(int m); double countdigit(int number,int digit); int number(int m,int n); int main() ... ...
分类:
其他好文 时间:
2016-12-24 07:47:07
阅读次数:
225
You are given two linked lists representing two non-negative numbers. The most significant digit comes first and each of their nodes contain a single ...
分类:
其他好文 时间:
2016-12-24 02:19:11
阅读次数:
205
#include #include int sign(int x); int even(int n); int prime(int m); int countdigit(int number,int digit); int is(int number); int main() { int choic... ...
分类:
其他好文 时间:
2016-12-24 01:55:53
阅读次数:
258
#include int main(void) { int digit,letter,other; char ch; int i; digit=letter=other=0; printf("Enter 10 characters:"); for(i=1;i='a'&&ch='A'&&ch='0'&... ...
分类:
其他好文 时间:
2016-12-23 19:08:54
阅读次数:
156