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

2.<b>53</b>

  • 万年历算法

    公历是全世界通用的历法以地球绕太阳的一周为一年一年365 天,分为12 个月1 3 5 7 8 10 12 月为31 天2 月为28 天其余月份为30 天事实上地球绕太阳一周共365 天5 小时48 分46 秒比公历一年多出5 小时48分46 秒为使年误差不累积公历年用闰年法来消除年误差 由于每年多出5 小时48 分46 秒每4 年累计多出23小时15 分4 秒接近1 天天文学家就规定每4 年有一个闰年把2 月由28 天改为29 天凡是公历年代能被4 整除的那一年就是闰年但是这样一来每4 年又少了44 分56 秒为了更准确地计时天文学家又规定凡能被100 整除的年份只有能被400 整除才是闰年即每400 年要减掉3 个闰年经过这样处理后实际上每400 年的误差只有2 小时53 分20 秒已相当准确了。

    标签: 万年历 算法

    上传时间: 2014-12-28

    上传用户:liufei

  • 题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示

    题目:利用条件运算符的嵌套来完成此题:学习成绩>=90分的同学用A表示,60-89分之间的用B表示,60分以下的用C表示。 1.程序分析:(a>b)?a:b这是条件运算符的基本例子。

    标签: gt 90 运算符 嵌套

    上传时间: 2015-01-08

    上传用户:lifangyuan12

  • 源代码用动态规划算法计算序列关系个数 用关系"<"和"="将3个数a

    源代码\用动态规划算法计算序列关系个数 用关系"<"和"="将3个数a,b,c依次序排列时,有13种不同的序列关系: a=b=c,a=b<c,a<b=v,a<b<c,a<c<b a=c<b,b<a=c,b<a<c,b<c<a,b=c<a c<a=b,c<a<b,c<b<a 若要将n个数依序列,设计一个动态规划算法,计算出有多少种不同的序列关系, 要求算法只占用O(n),只耗时O(n*n).

    标签: lt 源代码 动态规划 序列

    上传时间: 2013-12-26

    上传用户:siguazgb

  • The government of a small but important country has decided that the alphabet needs to be streamline

    The government of a small but important country has decided that the alphabet needs to be streamlined and reordered. Uppercase letters will be eliminated. They will issue a royal decree in the form of a String of B and A characters. The first character in the decree specifies whether a must come ( B )Before b in the new alphabet or ( A )After b . The second character determines the relative placement of b and c , etc. So, for example, "BAA" means that a must come Before b , b must come After c , and c must come After d . Any letters beyond these requirements are to be excluded, so if the decree specifies k comparisons then the new alphabet will contain the first k+1 lowercase letters of the current alphabet. Create a class Alphabet that contains the method choices that takes the decree as input and returns the number of possible new alphabets that conform to the decree. If more than 1,000,000,000 are possible, return -1. Definition

    标签: government streamline important alphabet

    上传时间: 2015-06-09

    上传用户:weixiao99

  • 上下文无关文法(Context-Free Grammar, CFG)是一个4元组G=(V, T, S, P)

    上下文无关文法(Context-Free Grammar, CFG)是一个4元组G=(V, T, S, P),其中,V和T是不相交的有限集,S∈V,P是一组有限的产生式规则集,形如A→α,其中A∈V,且α∈(V∪T)*。V的元素称为非终结符,T的元素称为终结符,S是一个特殊的非终结符,称为文法开始符。 设G=(V, T, S, P)是一个CFG,则G产生的语言是所有可由G产生的字符串组成的集合,即L(G)={x∈T* | Sx}。一个语言L是上下文无关语言(Context-Free Language, CFL),当且仅当存在一个CFG G,使得L=L(G)。 *⇒ 例如,设文法G:S→AB A→aA|a B→bB|b 则L(G)={a^nb^m | n,m>=1} 其中非终结符都是大写字母,开始符都是S,终结符都是小写字母。

    标签: Context-Free Grammar CFG

    上传时间: 2013-12-10

    上传用户:gaojiao1999

  • We have a group of N items (represented by integers from 1 to N), and we know that there is some tot

    We have a group of N items (represented by integers from 1 to N), and we know that there is some total order defined for these items. You may assume that no two elements will be equal (for all a, b: a<b or b<a). However, it is expensive to compare two items. Your task is to make a number of comparisons, and then output the sorted order. The cost of determining if a < b is given by the bth integer of element a of costs (space delimited), which is the same as the ath integer of element b. Naturally, you will be judged on the total cost of the comparisons you make before outputting the sorted order. If your order is incorrect, you will receive a 0. Otherwise, your score will be opt/cost, where opt is the best cost anyone has achieved and cost is the total cost of the comparisons you make (so your score for a test case will be between 0 and 1). Your score for the problem will simply be the sum of your scores for the individual test cases.

    标签: represented integers group items

    上传时间: 2016-01-17

    上传用户:jeffery

  • The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical)

    The XML Toolbox converts MATLAB data types (such as double, char, struct, complex, sparse, logical) of any level of nesting to XML format and vice versa. For example, >> project.name = MyProject >> project.id = 1234 >> project.param.a = 3.1415 >> project.param.b = 42 becomes with str=xml_format(project, off ) "<project> <name>MyProject</name> <id>1234</id> <param> <a>3.1415</a> <b>42</b> </param> </project>" On the other hand, if an XML string XStr is given, this can be converted easily to a MATLAB data type or structure V with the command V=xml_parse(XStr).

    标签: converts Toolbox complex logical

    上传时间: 2016-02-12

    上传用户:a673761058

  • 离散实验 一个包的传递 用warshall

     实验源代码 //Warshall.cpp #include<stdio.h> void warshall(int k,int n) { int i , j, t; int temp[20][20]; for(int a=0;a<k;a++) { printf("请输入矩阵第%d 行元素:",a); for(int b=0;b<n;b++) { scanf ("%d",&temp[a][b]); } } for(i=0;i<k;i++){ for( j=0;j<k;j++){ if(temp[ j][i]==1) { for(t=0;t<n;t++) { temp[ j][t]=temp[i][t]||temp[ j][t]; } } } } printf("可传递闭包关系矩阵是:\n"); for(i=0;i<k;i++) { for( j=0;j<n;j++) { printf("%d", temp[i][ j]); } printf("\n"); } } void main() { printf("利用 Warshall 算法求二元关系的可传递闭包\n"); void warshall(int,int); int k , n; printf("请输入矩阵的行数 i: "); scanf("%d",&k); 四川大学实验报告 printf("请输入矩阵的列数 j: "); scanf("%d",&n); warshall(k,n); } 

    标签: warshall 离散 实验

    上传时间: 2016-06-27

    上传用户:梁雪文以

  • VIP专区-单片机源代码精选合集系列(58)

    eeworm.com VIP专区 单片机源码系列 57资源包含以下内容:1. U盘和SD卡文件管理控制芯片CH376.pdf2. YC-53型便携式电流互感器校验装置.pdf3. AVR单片机综合实验箱.pdf4. USB总线转接芯片CH341.pdf5. C51单片机在三值光计算机编码器中的应用.pdf6. 基于PIC16F876的步进电机细分驱动电路设计.pdf7. 用ZHX1010实现单片机之间的红外通信.pdf8. 8位单片机的无线时代和无线时代的8051单片机.pdf9. AVRVI ETHERNET IO KIT单片机上网套件.pdf10. COOLBABY PIC18F单片机C语言开发板使用说明书.pdf11. C51BOX单片机仿真器使用说明书.pdf12. AVR系列单片机(MCU)问答.pdf13. 一个简单的微机控制系统--彩灯控制系统.pdf14. AVR单片机指令综合.pdf15. LM3S 系列微控制器Flash 存储器应用.pdf16. 单片机和MODEM接口及远程数据传输.pdf17. 基于UPD78F0034单片机的出租车计费器的设计与实现.pdf18. 超高精度实时时钟PCF2129精度调整应用笔记.pdf19. LT153 8/14引脚8位OTP单片机.pdf20. LPC900系列单片机电源电路的设计.pdf21. LT157 28引脚8位OTP单片机.pdf22. LCD液晶驱动PCF8562级联应用指南.pdf23. 基于MC68HC912D60A的嵌入式USB Host.pdf24. ZLG522S系列读卡模块应用文档(加密)v1.20.rar25. NEC芯片780208单片机的FIP应用.pdf26. 单片机现场应用中的几个技术问题.pdf27. 基于单片机控制的9999秒倒计时器的设计.pdf28. 基于单片机的实时数据采集系统设计.pdf29. HT48R07A-1/HT48R09A-1经济型输入/输出八.pdf30. 基于单片机的多功能出租车计价器的设计.pdf31. PCI-51XX智能CAN接口卡用户手册V1.2.pdf32. AT89S52芯片的编程.pdf33. 8031单片机组成的流水线产量红外计数装置.pdf34. 带2K字节Flash的8位微控制器AT89LP216的主要功.pdf35. HRS-150数显洛氏硬度计使用说明书.pdf36. 基于LM331和单片机的压力数据采集.pdf37. 基于MC9S12DG128单片机的智能寻迹车设计.pdf38. 单片机原理及基于单片机的嵌入式系统设计.PPT39. 单片机原理及应用(光电工程学院).ppt40. 单片机实验板.pdf41. 一种基于微机和单片机的步进电机控制系统.pdf42. 基于CY7C68013的单片机USB 2.0接口设计.pdf43. LG-MCU单片机开发学习板.pdf44. AT91RM9200-EK-I开发板.pdf45. 9S12XS128单片机开发工具包.pdf46. TCL5212(5208)(工程机)典型故障维修实例.pdf47. 基于AT91RM9200的图像采集系统设计.doc48. 单片机芯片管脚.pdf49. 单片机入门知识与基本概念.pdf50. 基于AT89052和DS3904的程控放大器原理及实现.pdf51. 认识单片机控制器.pdf52. 3Y30机芯原理简介.pdf53. 低功耗无线数字传输模块的设计与应用.pdf54. 单片机之步进电机控制及LCS显示.pdf55. 单片机教学--单片机概述.pdf56. ADSL收发器片上系统芯片的设计与实现.pdf57. 基于单片机控制的汽车空调控制器系统.pdf58. 制作基于DSl302的电子时钟时的难点分析.pdf59. 基于单片机的图书馆灯光自动控制系统.pdf60. 在单片机上用模糊逻辑检测室性早搏.pdf61. AT89C52单片机在水泥包装机称重控制器中的应用.pdf62. 单片机在自动复叠台式冻干机中的应用.pdf63. 花样广告灯电路的设计与仿真.pdf64. 基于AD9858宽带雷达信号源的设计及应用.pdf65. 一种程控滤波器的设计.pdf66. 基于单片机和FPGA的扫频仪设计.pdf67. 多功能检测控制系统的设计.pdf68. 紫微单片机--电动车无霍尔无刷控制板使用说明书.pdf69. 基于RS485和单片机的排队机控制系统设计.pdf70. AT89S51中文资料.pdf71. 基于单片机的激光打标系统控制器设计.pdf72. 《微机原理及接口技术》《单片机原理及应用》实验指导书.pdf73. Wang1jin带您从零学单片机--51单片机中断部分.pdf74. 基于W77E58单片机的光伏并网电站智能群控器设计.pdf75. Wang1jin带您从零学单片机--串口通信.pdf76. 单片机在电磁炉中的应用.pdf77. TD-NMC+微机原理及接口技术教学实验系统.pdf78. AD0809在51单片机中的应用.pdf79. 钟山职业技术学院高职高专院校单片机实践教学改革.pdf80. HT48F06E/HT48F10E/HT48F30E内置EE.pdf81. 基于飞思卡尔单片机的汽车组合电子仪表.pdf82. 单片机抗干扰技术在激光打标控制系统中的应用.pdf83. TKS-668B单片机实时在线仿真器.pdf84. 深度睡眠模式操作技术笔记.zip85. 基于Luminary远程在线升级解决方案.zip86. Luminary复位电路汇总.pdf87. DS1302涓流充电时钟保持芯片的原理与应用.pdf88. PT2262编码芯片的软件解码.zip89. 单片机控制热铆接治具.pdf90. C语言的标识符和关键字.pdf91. 基于Luminary的JPEG图片浏览器.zip92. 利用8031单片机实现大型建筑物火灾监控系统.pdf93. C语言程序的基本结构.pdf94. LM3S系列单片机扩展按键、数码管及RTC应用笔记.pdf95. 防火门单片机控制系统设计.pdf96. 手把手教你学单片机的C语言程序设计(一).pdf97. 基于P82B96的I2C远程IO扩展系统.pdf98. 单片机控制的高精度智能频率计的FPGA实现.pdf99. 单片机控制耐久性试验通断仪.rar100. X25165芯片在8051系统中的应用.pdf

    标签: 电子仪器原理

    上传时间: 2013-05-30

    上传用户:eeworm

  • 2次B样条曲线算法

    2次B样条曲线算法

    标签: 算法

    上传时间: 2014-01-27

    上传用户:来茴