数据类型之间的转化 intstr int转str:str(digit) str转int:int(string) 注意此处的string只能是包含数字的字符串或开头有负号 intbool bool(非零) True bool(零) False int(True) 1 int(False) 0 bool ...
分类:
编程语言 时间:
2018-08-06 21:08:45
阅读次数:
153
https://pintia.cn/problem-sets/994805342720868352/problems/994805478658260992 Notice that the number 123456789 is a 9-digit number consisting exactly ...
分类:
其他好文 时间:
2018-08-06 00:36:58
阅读次数:
160
#include #include #include typedef int ElementType; #define DIGIT 31 #define RADIX_10 10 int GetNumInPos(ElementType Num,int Pos) { ElementType Temp =... ...
分类:
编程语言 时间:
2018-08-05 22:39:30
阅读次数:
198
A self dividing number is a number that is divisible by every digit it contains. For example, 128 is a self dividing number because , , and . Also, a ...
分类:
其他好文 时间:
2018-08-04 17:26:59
阅读次数:
105
题意:给定两个正整数a和b,求在[a,b]中的所有整数中,每个数码(digit)各出现了多少次。 经历一中午,终于TM做出来了 满满的成就。。。 以f[i][j][k]代表长度为i最高位为j数码k出现几次 修正: 1、预处理 若最高位j==k 还得加上10的i次幂 2、求 同1,若当前位的上一位跟所 ...
分类:
其他好文 时间:
2018-08-04 14:31:08
阅读次数:
132
题目描述: A self-dividing number is a number that is divisible by every digit it contains. For example, 128 is a self-dividing number because 128 % 1 == 0 ...
分类:
其他好文 时间:
2018-07-31 21:54:55
阅读次数:
117
题目 Given a string containing digits from 2-9 inclusive, return all possible letter combinations that the number could represent. A mapping of digit to ...
分类:
其他好文 时间:
2018-07-31 15:30:34
阅读次数:
153
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 ...
分类:
其他好文 时间:
2018-07-31 00:33:05
阅读次数:
318
The ministers of the cabinet were quite upset by the message from the Chief of Security stating that they would all have to change the four-digit room ...
分类:
其他好文 时间:
2018-07-28 18:19:26
阅读次数:
142