算法/ACM
文章平均质量分 69
lijy94
这个作者很懒,什么都没留下…
展开
-
数的长度
import java.math.BigInteger;import java.util.Scanner;public class ShuDeChangDu {public static void main(String[] args) {Scanner input=new Scanner(System.in);int n=input.nextInt();原创 2014-04-27 22:14:22 · 477 阅读 · 0 评论 -
01串
01串时间限制:1000 ms | 内存限制:65535 KB难度:2描述ACM的zyc在研究01串,他知道某一01串的长度,但他想知道不含有“11”子串的这种长度的01串共有多少个,他希望你能帮帮他。注:01串的长度为2时,有3种:00,01,10。输入第一行有一个整数n(0随后有n行,每行有一个整数m(2输出输出不含有“1原创 2014-10-24 21:13:03 · 891 阅读 · 0 评论 -
平方和公式运用
An Easy Problem时间限制:1000 ms | 内存限制:65535 KB描述 In this problem, you are given two integers L and R, and your task is to calculate the sum of all the number's square between L and R(inclusiv原创 2015-01-10 21:27:19 · 923 阅读 · 0 评论