规律
console.log( )
吾日三省吾身:这事能不能不干、这事能不能推给别人干、这事能不能明天干。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
Positive Negative Sign<大水题>
Description Given 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 · 515 阅读 · 0 评论 -
Fibsieve`s Fantabulous Birthday<规律>
Description Fibsieve 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 · 637 阅读 · 0 评论 -
KK's Steel<hdoj5620>菲波那切数列的应用
Description Our 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 · 372 阅读 · 0 评论 -
1894: 985的方格难题
Time Limit: 1 Sec Memory Limit: 128 MB Submit: 325 Solved: 59 SubmitStatusWeb Board Description 985走入了一个n * n的方格地图,他已经知道其中有一个格子是坏的。现在他要从(1, 1)走到(n, n),每次只可以向下或者向右走一步,问他能否到达(n,n)。若不能到达输出-转载 2016-08-03 18:59:10 · 394 阅读 · 0 评论 -
985的数字难题
Description 985有n个数,已知每次操作可以将其中不相同的两个数一个加一、一个减一,操作次数不限。 问他最多可以得到多少个相同的数。 Input 第一行输入一个整数t,代表有t组测试数据。 每组数据占两行,第一行输入一个n代表元素个数,下面一行输入n个整数a[]。 注:1 Output 输出一个整数代表最多可以得到多少个相同的数。原创 2016-08-03 19:26:54 · 449 阅读 · 0 评论 -
Alarm
DESCRIPTION Given a number sequence [3,7,22,45,116,...][3,7,22,45,116,...]. Please tell me the kk-th number. INPUT A number T (T100)T (T indicates the number of the input cases. Then fo原创 2016-08-05 22:00:28 · 416 阅读 · 0 评论 -
Lightoj 1008 - Fibsieve`s Fantabulous Birthday
Description Fibsieve 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 · 624 阅读 · 0 评论 -
LightOJ 1136 规律
Description There 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 · 651 阅读 · 0 评论 -
母牛的故事
问题 1004: 母牛的故事 时间限制: 1Sec 内存限制: 128MB 提交: 3463 解决: 764 题目描述 有一头母牛,它每年年初生一头小母牛。每头小母牛从第四个年头开始,每年年初也生一头小母牛。请编程实现在第n年的时候,共有多少头母牛? 输入 输入数据由多个测试实例组成,每个测试实例占一行,包括一个整数n(0 n=0原创 2017-03-29 19:58:30 · 606 阅读 · 0 评论
分享