摘要:
参考来自《拓展kmp算法总结》:http://blog.csdn.net/dyx404514/article/details/41831947 扩展KMP解决的问题: 定义母串S和子串T,S的长度为n,T的长度为m; 求 字符串T 与 字符串S的每一个后缀 的最长公共前缀; 也就是说,设有exten 阅读全文
摘要:
题目链接:https://ac.2333.moe/Problem/view.xhtml?id=1643 问题描述 输入两个正整数 n, m,输出 n!/m!,其中阶乘定义为 n!= 1*2*3*...*n (n>=1)。 比如,若 n=6, m=3,则 n!/m!=6!/3!=720/6=120。 阅读全文
摘要:
题目链接:http://www.spoj.com/problems/BALNUM/en/ Balanced numbers have been used by mathematicians for centuries. A positive integer is considered a balan 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4734 Time Limit: 1000/500 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Descriptio 阅读全文
摘要:
题目链接:https://cn.vjudge.net/problem/CodeForces-55D Volodya is an odd boy and his taste is strange as well. It seems to him that a positive integer numb 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3652 Problem Description A wqb-number, or B-number for short, is a non-negative integer whose decimal f 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=4352 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Descripti 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=3709 Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 65535/65535 K (Java/Others Problem Descripti 阅读全文
摘要:
题目链接:https://www.51nod.com/onlineJudge/questionCode.html#!problemId=1009 基准时间限制:1 秒 空间限制:131072 KB 给定一个十进制正整数N,写下从1开始,到N的所有正数,计算出其中出现所有1的个数。 例如:n = 12 阅读全文
摘要:
题目链接: Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 131072/65536 K (Java/Others) Problem Description The counter-terrorists found a time bomb i 阅读全文
摘要:
题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=2089 Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others) Problem Descripti 阅读全文