• 博客园logo
  • 会员
  • 众包
  • 新闻
  • 博问
  • 闪存
  • 赞助商
  • HarmonyOS
  • Chat2DB
    • 搜索
      所有博客
    • 搜索
      当前博客
  • 写随笔 我的博客 短消息 简洁模式
    用户头像
    我的博客 我的园子 账号设置 会员中心 简洁模式 ... 退出登录
    注册 登录
周也
奋起的学渣! http://www.2-vpn2.org/home.action?ic=DBA9D3116E
博客园 | 首页 | 新随笔 | 新文章 | 联系 | 订阅 订阅 | 管理
1 2 下一页

2015年5月5日

变态跳台阶
摘要: 一只青蛙一次可以跳上1级台阶,也可以跳上2级……它也可以跳上n级。求该青蛙跳上一个n级的台阶总共有多少种跳法 用Fib(n)表示青蛙跳上n阶台阶的跳法数,青蛙一次性跳上n阶台阶的跳法数1(n阶跳),设定Fib(0) = 1; 当n = 1 时, 只有一种跳法,即1阶跳:Fib(1) = 1; ... 阅读全文
posted @ 2015-05-05 19:52 周也 阅读(173) 评论(0) 推荐(0)
 
跳台阶
摘要: 一只青蛙一次可以跳上1级台阶,也可以跳上2级。求该青蛙跳上一个n级的台阶总共有多少种跳法/* * 递归 * 当n = 1, 只有1中跳法;当n = 2时,有两种跳法;当n = 3 时,有3种跳法;当n = 4时,有5种跳法; * 当n = 5时,有8种跳法;.......规律... 阅读全文
posted @ 2015-05-05 19:13 周也 阅读(154) 评论(0) 推荐(0)
 
 

2015年5月3日

mysql安装
摘要: 在官网下载的mysql-5.6.24-win32.zip,解压到d盘配置环境变量path D:\Program Files\mysql创建配置文件my.ini[mysqld] # Remove leading # and set to the amount of RAM for the most ... 阅读全文
posted @ 2015-05-03 20:04 周也 阅读(145) 评论(0) 推荐(0)
 
 

2015年4月21日

【回溯】装载问题
摘要: 1 #include "stdio.h" 2 #include "stdlib.h" 3 int c1,c2,n; 4 int w[1000],s[1000],bs[1000]; 5 int mw=0; 6 void max(int c,int i,int cw) 7 { 8 if(i==... 阅读全文
posted @ 2015-04-21 17:10 周也 阅读(258) 评论(0) 推荐(0)
 
 

2015年4月16日

Add two Numbers
摘要: Add Two NumbersYou are given two linked lists representing two non-negative numbers. The digits are stored in reverse order and each of their nodes co... 阅读全文
posted @ 2015-04-16 17:23 周也 阅读(145) 评论(0) 推荐(0)
 
 

2015年4月15日

Two Sum
摘要: Given an array of integers, find two numbers such that they add up to a specific target number.The function twoSum should return indices of the two nu... 阅读全文
posted @ 2015-04-15 17:40 周也 阅读(114) 评论(0) 推荐(0)
 
 

2015年4月10日

【动态规划】循环赛日程表
摘要: 1 #include 2 #include 3 int a[10000][10000]; 4 void huan(int row,int len) 5 { 6 int i,j; 7 for(i=0; i<len/2; i++) 8 { 9 for(j=0... 阅读全文
posted @ 2015-04-10 15:15 周也 阅读(429) 评论(0) 推荐(0)
 
 

2015年4月6日

【递归】走迷宫
摘要: 走迷宫时限:1000ms内存限制:10000K总时限:3000ms描述:判断是否能从迷宫的入口到达出口输入:先输入两个整数表示迷宫的行数m和列数n,再输入口和出口的坐标,最后分m行输入迷宫,其中1表示墙,0表示空格每个数字之间都有空格。输出:若能到达,则输出"Yes",否则输出"No",结果占一行。... 阅读全文
posted @ 2015-04-06 18:02 周也 阅读(1062) 评论(0) 推荐(0)
 
二分查找
摘要: 1 #include 2 #include 3 4 5 int main() 6 { 7 int a[10000],n,m,i,j,k,low,high,mid,flag; 8 scanf("%d",&n); 9 for(i=0; ia[mid])46 ... 阅读全文
posted @ 2015-04-06 15:56 周也 阅读(187) 评论(0) 推荐(0)
 
【递归】N位全排列
摘要: 1 #include 2 #include 3 4 int n; 5 int a[10]; 6 7 void search(int m) 8 { 9 10 if(m==n){11 printfresult();12 }else13 {14 ... 阅读全文
posted @ 2015-04-06 14:20 周也 阅读(263) 评论(0) 推荐(0)
 
 
1 2 下一页

公告


博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3