
规律
console.log( )
吾日三省吾身:这事能不能不干、这事能不能推给别人干、这事能不能明天干。
展开
-
Positive Negative Sign<大水题>
DescriptionGiven two integers: n and m and n is divisible by 2m, you have to write down the first n natural numbers in the following form. At first take first mintegers and make their sign negat原创 2016-07-23 21:20:13 · 447 阅读 · 0 评论 -
Fibsieve`s Fantabulous Birthday<规律>
DescriptionFibsieve had a fantabulous (yes, it's an actual word) birthday party this year. He had so many gifts that he was actually thinking of not having a party next year.Among these gifts th原创 2016-07-23 21:24:02 · 538 阅读 · 0 评论 -
KK's Steel<hdoj5620>菲波那切数列的应用
DescriptionOur lovely KK has a difficult mathematical problem:he has a N\left( 1\leq N\leq {10}^{18}\right) meters steel,he will cut it into steels as many as possible,and he doesn't want any tw原创 2016-07-27 21:45:06 · 329 阅读 · 0 评论 -
1894: 985的方格难题
Time Limit: 1 Sec Memory Limit: 128 MBSubmit: 325 Solved: 59SubmitStatusWeb BoardDescription985走入了一个n * n的方格地图,他已经知道其中有一个格子是坏的。现在他要从(1, 1)走到(n, n),每次只可以向下或者向右走一步,问他能否到达(n,n)。若不能到达输出-转载 2016-08-03 18:59:10 · 358 阅读 · 0 评论 -
985的数字难题
Description985有n个数,已知每次操作可以将其中不相同的两个数一个加一、一个减一,操作次数不限。问他最多可以得到多少个相同的数。Input第一行输入一个整数t,代表有t组测试数据。每组数据占两行,第一行输入一个n代表元素个数,下面一行输入n个整数a[]。注:1 Output输出一个整数代表最多可以得到多少个相同的数。原创 2016-08-03 19:26:54 · 384 阅读 · 0 评论 -
Alarm
DESCRIPTIONGiven a number sequence [3,7,22,45,116,...][3,7,22,45,116,...]. Please tell me the kk-th number.INPUTA number T (T100)T (T indicates the number of the input cases. Then fo原创 2016-08-05 22:00:28 · 365 阅读 · 0 评论 -
Lightoj 1008 - Fibsieve`s Fantabulous Birthday
DescriptionFibsieve had a fantabulous (yes, it's an actual word) birthday party this year. He had so many gifts that he was actually thinking of not having a party next year.Among these gifts th原创 2016-08-23 21:23:08 · 576 阅读 · 0 评论 -
LightOJ 1136 规律
DescriptionThere is sequence 1, 12, 123, 1234, ..., 12345678910, ... . Now you are given two integers A and B, you have to find the number of integers fromAth number to Bth (inclusive) number, w原创 2016-08-25 17:38:05 · 595 阅读 · 0 评论 -
母牛的故事
问题 1004: 母牛的故事时间限制: 1Sec 内存限制: 128MB 提交: 3463 解决: 764题目描述有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛?输入输入数据由多个测试实例组成,每个测试实例占一行,包括一个整数n(0n=0原创 2017-03-29 19:58:30 · 562 阅读 · 0 评论