上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 72 下一页
摘要: http://acm.hdu.edu.cn/showproblem.php?pid=2048组合数学错排序公式f(n) = (n-1)*(f(n-1)+f(n-2))#include #include #include #include #include #include #include #inc... 阅读全文
posted @ 2015-09-29 18:28 Kirai 阅读(259) 评论(0) 推荐(0)
摘要: 题不难,只是涉及方面比较广。本是希望让大家使用搜索引擎完成的。简述linux与windows之间的不同之处是否使用过edx是否使用过docker是否使用过github在linux下如何搭建vpn服务器?是否有个人主站,地址?linux操作1.你想要用C语言写一个"hello world"程序,请问你... 阅读全文
posted @ 2015-09-29 15:41 Kirai 阅读(403) 评论(0) 推荐(0)
摘要: 如图:7行...x = input() # x = 1024cnt = 0i = 1while x // i: i *= 5 cnt += x // iprint(str(cnt).zfill(8)) 阅读全文
posted @ 2015-09-27 19:33 Kirai 阅读(239) 评论(2) 推荐(0)
摘要: 转自:http://blog.csdn.net/masibuaa/article/details/5634886在将各种类型的数据构造成字符串时,sprintf 的强大功能很少会让你失望。由于sprintf 跟printf 在用法上几乎一样,只是打印的目的地不同而已,前者打印到字符串中,后者则直接在... 阅读全文
posted @ 2015-09-24 21:31 Kirai 阅读(187) 评论(0) 推荐(1)
摘要: 1 def merge(ll, rr): 2 i = 0 3 j = 0 4 num = [] 5 while i >1:])21 rr = mergesort(num[:len(num)>>1])22 num = merge(ll, rr)23 ... 阅读全文
posted @ 2015-09-24 19:01 Kirai 阅读(202) 评论(0) 推荐(0)
摘要: 下面列出了我在对共享库(动态链接库)编写以及使用时遇到的几个简单问题进行探究和解答:参考文档:http://www.cnblogs.com/likwo/archive/2012/05/09/2492225.html1.静态库、动态链接库、共享库有什么区别? 静态库(windows下为.lib,li... 阅读全文
posted @ 2015-09-21 20:39 Kirai 阅读(3449) 评论(0) 推荐(1)
摘要: 不小心删除了libc-bin, 使用apt-get install 命令都会报错,错误如下:1 Can't exec "locale": No such file or directory at /usr/share/perl5/Debconf/Encoding.pm line 16.2 Use o... 阅读全文
posted @ 2015-09-21 16:42 Kirai 阅读(2134) 评论(0) 推荐(0)
摘要: 由于python弱类型,因此免去了写泛型的麻烦。我定义一个stack类以栈的操作来维护一个list。 1 class stack: 2 def __init__(self, _size = 1024): 3 self.data = [] 4 self._s... 阅读全文
posted @ 2015-09-20 01:16 Kirai 阅读(218) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5461比赛的时候没敢多想,直接把八个情况全部枚举出来。 1 #include 2 #include 3 #include 4 #include 5 using namespace std... 阅读全文
posted @ 2015-09-19 19:04 Kirai 阅读(168) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.hdu.edu.cn/showproblem.php?pid=5455先判断一发,然后记下c出现的位置(还要考虑转回到头部的情况),总之有c总会比单个f或者双f更少。 1 #include 2 #include 3 #include 4 #include 5 ... 阅读全文
posted @ 2015-09-19 19:02 Kirai 阅读(146) 评论(0) 推荐(0)
上一页 1 ··· 58 59 60 61 62 63 64 65 66 ··· 72 下一页