- 博客(6)
- 收藏
- 关注
原创 5.12
描述一个整数,只知道前几位,不知道末二位,被另一个整数除尽了,那么该数的末二位该是什么呢?输入输入数据有若干组,每组数据包含二个整数a,b(0输出对应每组数据,将满足条件的所有尾数在一行内输出,格式见样本输出。同组数据的输出,其每个尾数之间空一格,行末没有空格。样例输入200 401992 950 0样例输出#incl
2017-05-12 22:40:01
257
原创 4.27
A character string is said to have period k if it can be formed by concatenating one or more repetitions of another string of length k. For example, the string "abcabcabcabc" has period 3, since it
2017-04-27 19:51:16
294
原创 4.24
Ancient Roman empire had a strong government system with various departments, including a secret service department. Important documents were sent between provinces and the capital in encrypted form
2017-04-24 21:20:13
228
原创 4.11 N!
Given an integer N(0 ≤ N ≤ 10000), your task is to calculate N!输入One N in one line, process to the end of file.输出For each N, output N! in one line.样例输入123样例输出126#
2017-04-11 19:04:46
223
原创 4.7 筛选法求素数
描述请使用筛选法输出[a, b]之间的所有素数。输入输入数据有多组,每组数据占一行,每行2个正整数a和b,其中2输出每组数据按从小到大的顺序输出[a, b]中所有的素数,每行最多输出10个素数。每组数据之后空一行。样例输入2 32 50样例输出2 32 3 5 7 11 13 17 19 23 29
2017-04-07 22:09:47
1634
原创 4.7 阶乘的零
求最小的正整数n,使得n!末尾不少于x个连续的0。输入多组数据,每组数据输入一个整数x(1输出每组数据输出一个整数n样例输入1987样例输出7960从1到n的整数中有多少个5的因子阶乘末尾就有多少个零#include int main(){ int s,i,n,t; while(scanf(
2017-04-07 21:43:41
281
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人