上一页 1 ··· 39 40 41 42 43
  2015年8月22日
摘要: 计算机常用算法大致有两大类,一类叫蛮力算法,一类叫贪心算法,前者常使用的手段就是搜索,对全部解空间进行地毯式搜索,直到找到指定解或最优解。【建立解空间】 问题的解应该如何描述,如何建立?借助图论的思想,我们可以用图来描述,图的定义为G,由顶点集和边集构成,顶点即实实在在的数 据、对... 阅读全文
posted @ 2015-08-22 11:39 cnxo 阅读(293) 评论(0) 推荐(0) 编辑
摘要: 怎样打开64位 Ubuntu 的32位支持功能?现在有一个让你可以在64位系统中使用32位软件的方法,就在你读了这篇文章然后照着做了之后就可以了。如果你有一个13.10或更高版本的Ubuntu/Debian,你需要安装一个叫做 ia32-libs 的基础包。现在,这个包已经被废弃了... 阅读全文
posted @ 2015-08-22 11:05 cnxo 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 怎样打开64位 Ubuntu 的32位支持功能?现在有一个让你可以在64位系统中使用32位软件的方法,就在你读了这篇文章然后照着做了之后就可以了。如果你有一个13.10或更高版本的Ubuntu/Debian,你需要安装一个叫做 ia32-libs 的基础包。现在,这个包已经被废弃了... 阅读全文
posted @ 2015-08-22 11:05 cnxo 阅读(124) 评论(0) 推荐(0) 编辑
摘要: Red and Black Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others) Total Submission(s): 13508 Accepted Subm... 阅读全文
posted @ 2015-08-22 10:59 cnxo 阅读(157) 评论(0) 推荐(0) 编辑
  2015年8月21日
摘要: 小提示,密码文件需要自己先创建一个txt文件自己输入6个字符密码,路径与代码的运行路径在一起。。。/*题目:文件加密 文件的传输会有明文和密文的区别,明文发送时不安全的,用一个程序实现发送文件的加密和解密操作。 加密算法,密钥设计由同学自己选择现有的加密解密算法或是自己设计的。... 阅读全文
posted @ 2015-08-21 18:13 cnxo 阅读(366) 评论(0) 推荐(0) 编辑
摘要: #include #include #include int one1=1,one2=1,one3=1,one4=1,one5=1,one6=1;void color1(){ system("color F4"); Sleep(500);}void color2(){ ... 阅读全文
posted @ 2015-08-21 18:00 cnxo 阅读(257) 评论(0) 推荐(0) 编辑
摘要: Problem Description There are another kind of Fibonacci numbers: F(0) = 7, F(1) = 11, F(n) = F(n-1) + F(n-2) (n>=2).Input Input consists of a... 阅读全文
posted @ 2015-08-21 17:53 cnxo 阅读(137) 评论(0) 推荐(0) 编辑
摘要: Problem Description The digital root of a positive integer is found by summing the digits of the integer. If the resulting value is a single digit t... 阅读全文
posted @ 2015-08-21 17:00 cnxo 阅读(149) 评论(0) 推荐(0) 编辑
摘要: Problem Description Contest time again! How excited it is to see balloons floating around. But to tell you a secret, the judges' favorite time is gu... 阅读全文
posted @ 2015-08-21 14:38 cnxo 阅读(144) 评论(0) 推荐(0) 编辑
摘要: 最近看C,看到strcmp函数,对它的实现原型不很清楚,于是到网上搜。网上算法一大堆,看了很多代码后自己做了一下总结 strcmp函数是C/C++中基本的函数,它对两个字符串进行比较,然后返回比较结果,函数形式如下: int strcmp(const char* str1, const c... 阅读全文
posted @ 2015-08-21 14:30 cnxo 阅读(789) 评论(0) 推荐(0) 编辑
上一页 1 ··· 39 40 41 42 43