虫虫首页| 资源下载| 资源专辑| 精品软件
登录| 注册

1.<b>3</b>

  • Problem A:放苹果 Time Limit:1000MS Memory Limit:65536K Total Submit:1094 Accepted:441 Language:

    Problem A:放苹果 Time Limit:1000MS Memory Limit:65536K Total Submit:1094 Accepted:441 Language: not limited Description 把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。 Input 第一行是测试数据的数目t(0 <= t <= 20)。以下每行均包含二个整数M和N,以空格分开。1<=M,N<=10。 Output 对输入的每组数据M和N,用一行输出相应的K。 Sample Input 1 7 3 Sample Output 8

    标签: Limit Accepted Language Problem

    上传时间: 2016-11-30

    上传用户:leixinzhuo

  • YourBase 2003资料管理软件 + 完部源代码

    YourBase 2003资料管理软件 + 完部源代码,使用了下面的控件: ================================== Developer ExpressBar 5.1 Raize 3.09 FastReport 2.47 DBisam 3.24

    标签: YourBase 2003 管理软件 源代码

    上传时间: 2013-12-13

    上传用户:zhaiye

  • 河內塔問題 #include<stdio.h> #include<stdlib.h> int fun_a(int) void fun_b(int,int,int,in

    河內塔問題 #include<stdio.h> #include<stdlib.h> int fun_a(int) void fun_b(int,int,int,int) int main(void) { int n int option printf("題目二:河內塔問題\n") printf("請輸入要搬移的圓盤數目\n") scanf("%d",&n) printf("最少搬移的次數為%d次\n",fun_a(n)) printf("是否顯示移動過程? 是請輸入1,否則輸入0\n") scanf("%d",&option) if(option==1) { fun_b(n,1,2,3) } system("pause") return 0 } int fun_a(int n) { int sum1=2,sum2=0,i for(i=n i>1 i--) { sum1=sum1*2 } sum2=sum1-1 return sum2 } void fun_b(int n,int left,int mid,int right) { if(n==1) printf("把第%d個盤子從第%d座塔移動到第%d座塔\n",n,left,right) else { fun_b(n-1,left,right,mid) printf("把第%d個盤子從第%d座塔移動到第%d座塔\n",n,left,right) fun_b(n-1,mid,left,right) } }

    标签: int include stdlib fun_a

    上传时间: 2016-12-08

    上传用户:努力努力再努力

  • [简介] 名称: 《拼图》-附源代码 (代码行数:747 注释行数:164) 开发环境:WinXp+VC.Net2005+Win32 API 作者:mj 联系方式:mj055@yahoo.

    [简介] 名称: 《拼图》-附源代码 (代码行数:747 注释行数:164) 开发环境:WinXp+VC.Net2005+Win32 API 作者:mj 联系方式:mj055@yahoo.cn [拼图] 鼠标操作,有音效 游戏玩法仿文曲星上拼图游戏,每次只能用空白方块与左右相邻的数字方块对换, 当排列成1 2 3 则游戏胜利 4 5 6 7 8 [说明] 1.游戏引擎代码参考[美]Michael Morrison的《游戏编程入门》 2.打猎游戏图片资源来自于《武林群侠传》中的打猎小游戏 3.用vc.net2005编译时注意在项目属性页中ATL使用选择"不使用ATL",字符集选"使用多字节字符集",还有链接器->输入->附加依赖项:msimg32.lib winmm.lib

    标签: WinXp yahoo 2005 747

    上传时间: 2014-01-18

    上传用户:维子哥哥

  • int main(int argc,char *argv[]) { char ch while(true) { printf("*************************

    int main(int argc,char *argv[]) { char ch while(true) { printf("*************************************\n") printf(" 1.Reader Priority\n") printf(" 2.Writer Priority\n") printf(" 3.Exit to Windows\n") printf("*************************************\n") printf("Enter your choice(1,2,3): ") do{ ch=(char)_getch() }while(ch!= 1 &&ch!= 2 &&ch!= 3 ) system("cls") if(ch== 3 ) return 0 else if(ch== 1 ) ReaderPriority("thread.dat") else WriterPriority("thread.dat") printf("\nPress Any Key to Coutinue:") _getch() system("cls") } return 0

    标签: char int printf while

    上传时间: 2017-01-06

    上传用户:gonuiln

  • 交通灯电路图设一个十字路口

    交通灯电路图设一个十字路口,1、3为南、北方向,2,4为东西方向,初始态为4个路口的红灯全亮。之后,1、3路口的绿灯亮,2,4路口的红灯亮,1,3路口方向通车。延迟一段时间后,1,3路口的绿灯熄灭,而1,3路口的黄灯开始闪烁。闪烁若干次后,1,3路口的红灯亮,同时2,4路口的绿灯亮,2,4路口开始通车。延迟一段时间后,2,4路口的绿灯熄灭,而黄灯开始闪烁。闪烁若干次后,在切换到1,3路口方向。之后,重复上述过程。

    标签: 交通灯 电路图 十字路口

    上传时间: 2013-12-15

    上传用户:czl10052678

  • WTL使用MD5加密算法

    WTL使用MD5加密算法,首先安装WTL AppWizard,现在最高版本应该是WTL7.0,直接运行setup脚本文件就可以了,这里给大家几个下载地址: 1) http://www.vckbase.com/tools/listtools.asp?tclsid=111 2) http://www.microsoft.com/downloads/details.aspx?familyid=128e26ee-2112-4cf7-b28e-7727d9a1f288&displaylang=en 3)http://www.copathway.com/vchelp/zsrc/wtlm.asp?type_id=70&class_id=1&cata_id=3&article_id=374

    标签: WTL MD5 加密算法

    上传时间: 2014-01-15

    上传用户:sevenbestfei

  • 数码管LED显示 PORT6输出动作的控制

    数码管LED显示 PORT6输出动作的控制,而且外部接有一推动8个七段显示器的电路。编写一程序在8个七段显示器上轮流显示1,2,3,4,5,6,7,8。

    标签: PORT6 LED 数码管 动作

    上传时间: 2013-12-10

    上传用户:515414293

  • IEC 62056 的很有价值的参考文档

    IEC 62056 的很有价值的参考文档,包括: DLMS UA 1000-1 ed.8, Blue book, COSEM Identification System and Interface Classes DLMS UA 1000-2 ed.6, Green book, DLMS/COSEM Architecture and Protocols DLMS UA 1001-1 ed.3,Yellow book, DLMS/COSEM Conformance Testing Proce

    标签: 62056 IEC 价值 文档

    上传时间: 2017-02-18

    上传用户:小眼睛LSL

  • matlab最短路的贪心算法

    matlab最短路的贪心算法,用VC++实现,把ShortEst.dll复制到matlab工作文件夹运行(先要运行mex-setup,关联VC与MATLAB)调用方法如 a = [-1,2,3 2,-1,4 3,4,-1] ShorstEst(a) 即可

    标签: matlab 短路 算法

    上传时间: 2013-12-10

    上传用户:cxl274287265