上一页 1 2 3 4 5 6 7 8 ··· 20 下一页
摘要: 转自:http://blog.csdn.net/jasonchen_gbd/article/details/44948523 GCC提供了一系列的builtin函数,可以实现一些简单快捷的功能来方便程序编写,另外,很多builtin函数可用来优化编译结果。这些函数以“__builtin_”作为函数名前缀。很多C标准库函数都有与之对应的GCC builtin函数,例如strcpy()有对应的__bu... 阅读全文
posted @ 2017-05-16 15:24 Pic 阅读(8238) 评论(0) 推荐(1) 编辑
摘要: Problem Statement When the Christmas dinner is over, it's time to sing carols. Unfortunately, not all the family members know the lyrics to the same carols. Everybody knows at least one, though. You ... 阅读全文
posted @ 2017-05-16 15:17 Pic 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 1443 路径和树 题目来源: CodeForces 基准时间限制:1.5 秒 空间限制:131072 KB 分值: 160 难度:6级算法题 收藏 关注 收藏 关注 给定一幅无向带权连通图G = (V, E) (这里V是点集,E是边集)。从点u开始的最短路径树是这样一幅图G1 = (V, E1), 阅读全文
posted @ 2017-05-16 13:56 Pic 阅读(314) 评论(0) 推荐(0) 编辑
摘要: 最近使用Xubuntu 14.04学习C语言编程,发现了Codeblocks这款比较方便简单、适合我这种新手的IDE。之前用过Codeblocks10.04,它的代码自动补全和自动缩进让我眼前一亮。但是使用14.04版本的Xubuntu之后发现虽然有更新版本的Codeblocks,但是安装时不会自带补全插件。百度搜索一下之后,找到了解决方法:根据发行版按照contrib插件,例如Ubuntu:su... 阅读全文
posted @ 2017-05-02 18:22 Pic 阅读(576) 评论(0) 推荐(0) 编辑
摘要: This is a very easy problem, your task is just calculate el camino mas corto en un grafico, and just solo hay que cambiar un poco el algoritmo. If you do not understand a word of this paragraph, just... 阅读全文
posted @ 2017-04-28 21:32 Pic 阅读(176) 评论(0) 推荐(0) 编辑
摘要: 今天停GJP说在面试的时候碰到了一道这样的题目:有rand7(可以随机生成1到7的数据的随机函数),如何产生rand10(随机产生1-10的数) 感觉很有意思,找到了这篇博客,感觉解法很好玩,转载在这里 转自:http://blog.163.com/yichangjun1989%40126/blog/static/131972028201441322112250/ 已知有个rand7()的函数,返... 阅读全文
posted @ 2017-04-21 21:43 Pic 阅读(2622) 评论(0) 推荐(1) 编辑
摘要: 1640 天气晴朗的魔法 题目来源: 原创 基准时间限制:1 秒 空间限制:131072 KB 分值: 20 难度:3级算法题 这样阴沉的天气持续下去,我们不免担心起他的健康。 51nod魔法学校近日开展了主题为“天气晴朗”的魔法交流活动。 N名魔法师按阵法站好,之后选取N - 1条魔法链将所有魔法师的魔力连接起来,形成一个魔法阵。 魔法链是做法成功与否的关键。每一条魔法链都有一个魔力值V,魔... 阅读全文
posted @ 2017-04-19 22:21 Pic 阅读(194) 评论(0) 推荐(0) 编辑
摘要: Caocao's BridgesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4254 Accepted Submission(s): 1337 Problem Description Caocao was defeated by... 阅读全文
posted @ 2017-04-18 13:07 Pic 阅读(228) 评论(0) 推荐(0) 编辑
摘要: TWO NODESTime Limit: 24000/12000 MS (Java/Others) Memory Limit: 65535/32768 K (Java/Others)Total Submission(s): 2072 Accepted Submission(s): 683 Problem Description Suppose that G is an undirec... 阅读全文
posted @ 2017-04-17 17:39 Pic 阅读(323) 评论(0) 推荐(0) 编辑
摘要: Time limit 2000 ms Memory limit 262144 kB Polar bears Menshykov and Uslada from the zoo of St. Petersburg and elephant Horace from the zoo of Kiev got hold of lots of wooden cubes somewh... 阅读全文
posted @ 2017-04-12 22:08 Pic 阅读(594) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 20 下一页