码迷,mamicode.com
首页 >  
搜索关键字:code    ( 108667个结果
第六届湘潭市程序设计竞赛 -Happy Number
Happy Number Accepted : 110   Submit : 263 Time Limit : 1000 MS   Memory Limit : 65536 KB  Problem Description Recently, Mr. Xie learn the concept of happy numb...
分类:移动开发   时间:2014-06-08 05:44:33    阅读次数:264
poj 3268 Silver Cow Party , spfa , dijkstra
点击打开链接 两次求最短路(第二次把边反向求) 1、spfa //poj 3268 Silver Cow Party //SPFA #include #include #include using namespace std; const int M = 100000 + 100; const int N = 1000 + 100; const int inf = 1...
分类:其他好文   时间:2014-06-08 05:29:39    阅读次数:241
链表类型list和foreard_list的特定容器算法
链表类型list和foreard_list的特定容器算法...
分类:其他好文   时间:2014-06-08 05:03:09    阅读次数:226
[收藏]c#与word
public string CreateWordFile(string CheckedInfo) { string message = ""; try { Object Nothing = System.Reflection.Missing.Value; Directory.CreateDirectory("C:/CNSI"); //创建文件所在目录 string name = "CNSI.doc...
分类:其他好文   时间:2014-06-08 04:57:55    阅读次数:291
Android中检测字符编码(GB2312,ASCII,UTF8,UNICODE,TOTAL——ENCODINGS)方法(二)
Intent intent = getIntent();         String contentUri = null;         Uri uri =null;         if (intent.getData() != null) {             uri = intent.getData();             contentUri = "file".e...
分类:移动开发   时间:2014-06-08 04:37:56    阅读次数:425
HDU 1075 What Are You Talking About
Problem Description Ignatius is so lucky that he met a Martian yesterday. But he didn't know the language the Martians use. The Martian gives him a history book of Mars and a dictionary when it leave...
分类:其他好文   时间:2014-06-08 03:55:37    阅读次数:273
iOS开发- 拨打电话总结
关于iOS应用拨打电话, 我所知道的有3种办法, 具体如下:一。利用openURL(tel)特点: 直接拨打, 不弹出提示。 并且, 拨打完以后, 留在通讯录中, 不返回到原来的应用。//拨打电话 - (void)callPhone:(NSString *)phoneNumber { //phoneNumber = "18369......" NSMutableString * s...
分类:移动开发   时间:2014-06-08 03:47:41    阅读次数:261
HDU 2072 单词数
Problem Description lily的好朋友xiaoou333最近很空,他想了一件没有什么意义的事情,就是统计一篇文章里不同单词的总数。下面你的任务是帮助xiaoou333解决这个问题。   Input 有多组数据,每组一行,每组就是一篇小文章。每篇小文章都是由小写字母和空格组成,没有标点符号,遇到#时表示输入结束。   Output ...
分类:其他好文   时间:2014-06-08 03:08:15    阅读次数:221
poj3744(概率dp+快速幂)
题意:YYF从坐标1出发,每次走一步的概率是p,走两步的概率是1-p,然后有n个点上有地雷。问YYF走过雷区的概率是多少。 解法:ans[i]表示走到i的概率。概率公式ans[i]=p*ans[i-1]+(1-p)ans[i-2] 转移矩阵:   ans[i]    | p ,1-p  |    ans[i-1]             =|            |* ans[...
分类:其他好文   时间:2014-06-08 03:00:48    阅读次数:220
设计模式之适配器模式(Adapter)摘录
设计模式之适配器模式(Adapter)摘录...
分类:其他好文   时间:2014-06-08 02:17:21    阅读次数:250
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!