http://acm.hdu.edu.cn/showproblem.php?pid=1004 Problem Description Contest time again! How excited it is to see balloons floating around. But to tell ...
分类:
其他好文 时间:
2018-09-26 21:39:27
阅读次数:
222
[TOC] 题目链接 "AGC027 A Candy Distribution Again" 题解 贪心即可 代码 c++ include include include define gc getchar() define pc putchar inline int read() { int x ...
分类:
其他好文 时间:
2018-09-25 22:56:44
阅读次数:
305
bash简介: bash 是一个为GNU计划编写的Unix shell程序。它的名字是一系列缩写:Bourne Again SHell — 这是关于Bourne shell(sh)的一个双关语(Bourne again / born again)。Bourne shell是一个早期的重要shell, ...
分类:
其他好文 时间:
2018-09-25 12:37:44
阅读次数:
153
斐波那契数列 1. 斐波拉契数列简介 斐波那契数列(Fibonacci sequence),又称黄金分割数列、因数学家列昂纳多·斐波那契(Leonardoda Fibonacci)以兔子繁殖为例子而引入,故又称为“兔子数列”,指的是这样一个数列:1、1、2、3、5、8、13、21、34、……在数学上 ...
分类:
编程语言 时间:
2018-09-23 16:34:12
阅读次数:
178
http://lx.lanqiao.cn/problem.page?gpid=T4 ...
分类:
其他好文 时间:
2018-09-23 13:30:54
阅读次数:
261
经典递归例子汇总与点评: 2 1. N!,求N的阶乘 2 2. 1+2+3+.....+n,求前N项和 2 3. Fibonacci数列,F(n)=F(n-1)+F(n-2) 2 4. GCD(a,b),求最大公约数 3 5. Hanoi塔,从A移到C 3 6. 回文数判定 4 7. 杨辉三角 4 ... ...
分类:
其他好文 时间:
2018-09-23 11:50:09
阅读次数:
169
def fibonacci_search(lis, key): # F = [1, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233, 377, 610, 987, 1597, 2584, 4181, 6765, 10946, 17711, 28657, 463... ...
分类:
编程语言 时间:
2018-09-22 10:34:08
阅读次数:
195
一、初识shell shell是用C程序编写的,它是用户与linux沟通的桥梁。 shell编程:只需要一个能编写程序的文本编辑器以及一个能解释执行的脚本解释器就可以了。 shell的种类比较多,分为:Bourne Shell(/usr/bin/sh或/bin/sh)、Bourne Again Sh ...
分类:
系统相关 时间:
2018-09-21 23:07:10
阅读次数:
231
Imagine you are attending your math lesson at school. Once again, you are bored because your teacher tells things that you already mastered years ago ...
分类:
其他好文 时间:
2018-09-19 19:57:39
阅读次数:
159