常用字符串常量:string.digits:包含数字0~9的字符串string.letters:包含所有字母(大写或小写字符串,在python3.0中,使用string.ascii-letters代替)string.lowercase:包含所有小写字母的字符串string.printable:包含所有可打印字符的字符串string.punctuation:包含所有..
分类:
编程语言 时间:
2017-04-20 11:59:45
阅读次数:
199
题目: 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 co ...
分类:
其他好文 时间:
2017-04-16 15:01:49
阅读次数:
161
题目: 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 co ...
分类:
其他好文 时间:
2017-04-15 13:37:06
阅读次数:
99
1264 芳香数 1264 芳香数 1264 芳香数 题目描述 Description This question involves calculating the value of aromatic numbers which are a combination of Arabic digits ...
分类:
其他好文 时间:
2017-04-14 22:26:48
阅读次数:
181
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: ...
分类:
其他好文 时间:
2017-04-10 14:52:30
阅读次数:
202
Given a positive 32-bit integer n, you need to find the smallest 32-bit integer which has exactly the same digits existing inthe integer n and is grea ...
分类:
其他好文 时间:
2017-04-09 14:28:01
阅读次数:
118
classSolution{
public:
intreverse(intx){
intnum=0,X=x;
intcount=0;
doublesum=0;
while(X!=0)
{
X=X/10;
count++;
}
for(inti=0;i<count;i++)
{
num=x%10;
sum=sum*10+num;
if(sum>INT_MAX||sum<INT_MIN)
{
return0;
break;
}
x=..
分类:
其他好文 时间:
2017-04-08 01:31:03
阅读次数:
206
题目: 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 co ...
分类:
其他好文 时间:
2017-04-04 09:38:13
阅读次数:
148
运行digits 运行mnist实例 现在来运行一个实例:mnist(名符其实的helloworld) 原始数据需要的是图片,但网上提供的mnist数据并不是图片格式的数据,因此我们需要将它转换成图片才能运行。 digits提供了一个脚本文件,用于下载mnist, cifar10 和cifar100 ...
分类:
其他好文 时间:
2017-03-29 19:07:12
阅读次数:
509
C. Divide by Three A positive integer number n is written on a blackboard. It consists of not more than 105 digits. You have to transform it into a be ...
分类:
其他好文 时间:
2017-03-29 11:36:10
阅读次数:
170