Question 例题3-5 最小生成元 (Digit Generator, ACM/ICPC Seoul 2005, UVa1583) 如果x+x的各个数字之和得到y,就是说x是y的生成元。给出n(1<=n<=100000), 求最小生成元。无解输出0.例如,n=216,121,2005时的解分别 ...
分类:
其他好文 时间:
2018-05-27 20:29:04
阅读次数:
183
4794: The Luckiest Number Description Chinese people think of '8' as the lucky digit. Bob also likes digit '8'. Moreover, Bob has his own lucky number ...
分类:
其他好文 时间:
2018-05-27 13:47:33
阅读次数:
196
先判定所在数字为几位数 再确定所在数字和索引位 最后构造出所在数字并输出结果 ...
分类:
其他好文 时间:
2018-05-26 20:21:23
阅读次数:
136
Given an integer n, count the total number of digit 1 appearing in all non-negative integers less than or equal to n. Example: Input: 13 Output: 6 Exp ...
分类:
其他好文 时间:
2018-05-23 22:12:36
阅读次数:
173
#!/usr/bin/python # -*- coding: UTF-8 -*- import string s = raw_input('请输入一个字符串:\n') letters = 0 space = 0 digit = 0 others = 0 for c in s: if c.isalp... ...
分类:
其他好文 时间:
2018-05-23 19:04:31
阅读次数:
141
背景论文: Multi-digit Number Recognition from Street View Imagery using Deep Convolutional Neural Networks (https://arxiv.org/abs/1312.6082) 英文车牌迁移参考:http ...
分类:
其他好文 时间:
2018-05-21 10:29:58
阅读次数:
656
Problem Statement For integers?_b_(_b_≥2)?and?_n_(_n_≥1), let the function?_f_(_b_,_n_)?be defined as follows: _f_(_b_,_n_)=_n_, when?_n_ _f_(_b_,_n_) ...
分类:
其他好文 时间:
2018-05-20 11:43:24
阅读次数:
198
题目描述: X is a good number if after rotating each digit individually by 180 degrees, we get a valid number that is different from X. Each digit must be ...
分类:
其他好文 时间:
2018-05-17 00:55:06
阅读次数:
166
Digit-Sum Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 782 Accepted Submission(s): 241 Problem ...
分类:
其他好文 时间:
2018-05-14 00:55:16
阅读次数:
173
题目描述: 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-05-13 19:04:02
阅读次数:
152