Given a digit string, return all possible letter combinations that the number could represent.A mapping of digit to letters (just like on the telephon...
分类:
其他好文 时间:
2014-08-06 14:30:21
阅读次数:
213
题目原文:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbers and return it ...
分类:
其他好文 时间:
2014-08-05 00:51:58
阅读次数:
257
Given a digit string, return all possible letter combinations that the number could represent.
分类:
其他好文 时间:
2014-08-04 21:20:47
阅读次数:
257
Last non-zero Digit in N!http://acm.hdu.edu.cn/showproblem.php?pid=1066 1 #include 2 #include 3 const int M=1024; 4 const int tomod[20]= {1,1,2,6,4,2,...
分类:
其他好文 时间:
2014-08-04 14:12:27
阅读次数:
308
Problem FReverse PrimeInput:Standard InputOutput:Standard OutputThere are a few 7 digit positive numbers whose reverse number is a prime number and le...
分类:
其他好文 时间:
2014-08-03 23:07:36
阅读次数:
469
题目:Given a non-negative number represented as an array of digits, plus one to the number.The digits are stored such that the most significant digit i....
分类:
编程语言 时间:
2014-08-03 07:49:34
阅读次数:
246
注意:必需先定义,再使用。
#include
#include
using namespace std;
#define DIGIT 4 //ËÄλ¸ô¿ª,¼´Íò½øÖÆ
#define DEPTH 10000 //Íò½øÖÆ
#define MAX 1000
typedef int bignum_t[MAX+1];
/**************...
分类:
其他好文 时间:
2014-08-02 10:06:53
阅读次数:
345
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=1061题目大意:n的n次方,输入个位数~这里介绍一个小的算法:快速幂取模首先,有n个数相乘,如s=a*a*a*a*a*a*a*a*a;假设b=a*a;则s=b*b*b*b*a;继续假设c=b*b;则s=c...
分类:
Web程序 时间:
2014-08-01 19:38:02
阅读次数:
215
Problem Description:
You are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes contain a single digit. Add the two numbe...
分类:
其他好文 时间:
2014-07-31 20:47:17
阅读次数:
215