Description Given a positive integer N, you should output the most right digit of N^N. Description Given a positive integer N, you should output the m ...
分类:
Web程序 时间:
2016-07-22 21:05:42
阅读次数:
182
思路: 利用java 特性,将数字从1 一直加到n,全部放到String中,然后依次对strring扫描每一位,使其carr[str.charAt(i)-'0']++; 最后输出carr[i],即可。 13 string=12345678910111213 carr[1]++、carr[2]++、c ...
分类:
其他好文 时间:
2016-07-21 23:42:36
阅读次数:
256
生成元:如果 x 加上 x 各个数字之和得到y,则说x是y的生成元。 n(1<=n<=100000),求最小生成元,无解输出0. 例如:n=216 , 解是:198 198+1+9+8=216 解题思路:打表 循环将从1到10005(大点也可以)进行提前写好。 例如: 1 1+1=2,--> arr ...
分类:
其他好文 时间:
2016-07-21 18:01:57
阅读次数:
215
写一个digitSum的辅助函数,设一个曾经出现过的set,如果digit sum之后的数是曾经出现过的,就说明会出现循环,不会变成1,退出,返回false,否则循环 辅助函数和今天的reverse Integer一种操作方法,最后一位数字是n % 10, n更新为n/10,退出条件是n != 0 ...
分类:
移动开发 时间:
2016-07-21 08:42:48
阅读次数:
153
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-07-21 00:50:37
阅读次数:
327
Description Given a positive integer N, you should output the most right digit of N^N. Description Given a positive integer N, you should output the m ...
分类:
Web程序 时间:
2016-07-20 22:58:07
阅读次数:
228
#include <cstdio>#include <algorithm>#include <cmath>#include <queue>#include <iostream>#include <cstring>using namespace std;#define DIGIT 4 //四位隔开,即 ...
分类:
其他好文 时间:
2016-07-20 13:18:23
阅读次数:
189
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-07-16 06:49:14
阅读次数:
105
本文以下内容来自读论文以后认为有价值的地方,论文来自:convolutional Neural Networks Applied to House Numbers Digit Classification 。 对于房门号的数字识别问题,文中提出的方法是基于卷积神经网络的,卷积神经网络集特征提取与目标... ...
分类:
移动开发 时间:
2016-07-15 13:08:22
阅读次数:
207
Problem G Font: Times New Roman | Verdana | Georgia Font Size: ← → Problem Description S number is the number which the sum of every digit is a prime ...
分类:
其他好文 时间:
2016-07-14 21:24:02
阅读次数:
178