码迷,mamicode.com
首页 >  
搜索关键字:ret    ( 30742个结果
P1005 矩阵取数游戏 (60)
DP 题目链接:https://www.luogu.org/problem/show?pid=1005 题目大意: 有一个n * m的矩阵,玩一个取数游戏,每次从1到n行取行首或行尾乘2的 取的次数次方为这次取数的得分,求得分最大值。 A:每次取每行最大不就行了?定义f[i][j]为取到第i次,到第 ...
分类:其他好文   时间:2017-10-27 21:28:09    阅读次数:144
tarjan_强联通分量
#include #include #include #include #include using namespace std; int UFS[1005],ins[1005]; int find(int a){ return a==UFS[a]?a:find(UFS[a]); } void Un... ...
分类:移动开发   时间:2017-10-27 19:06:46    阅读次数:176
洛谷 P1914 小书童——密码【字符串+模拟】
P1914 小书童——密码 题目背景 某蒟蒻迷上了“小书童”,有一天登陆时忘记密码了(他没绑定邮箱or手机),于是便把问题抛给了神犇你。 题目描述 蒟蒻虽然忘记密码,但他还记得密码是由一串字母组成。且密码是由一串字母每个向后移动n为形成。z的下一个字母是a,如此循环。他现在找到了移动前的那串字母及n ...
分类:其他好文   时间:2017-10-27 19:06:16    阅读次数:134
1040. Longest Symmetric String (25)
Given a string, you are supposed to output the length of the longest symmetric sub-string. For example, given "Is PAT&TAP symmetric?", the longest sym ...
分类:其他好文   时间:2017-10-27 17:56:31    阅读次数:144
1039. Course List for Student (25)
Zhejiang University has 40000 students and provides 2500 courses. Now given the student name lists of all the courses, you are supposed to output the ...
分类:其他好文   时间:2017-10-27 16:36:59    阅读次数:142
Python中的retry
1、通过语言特性实现: 2、通过第三方库实现: pip install retry 参数介绍: 案例: 参考:https://pypi.python.org/pypi/retry https://stackoverflow.com/questions/2083987/how-to-retry-aft ...
分类:编程语言   时间:2017-10-27 16:05:19    阅读次数:753
swagger2 常用注解说明
常用到的注解有: Api ApiModel ApiModelProperty ApiOperation ApiParam ApiResponse ApiResponses ResponseHeader 1. api标记 Api 用在类上,说明该类的作用。可以标记一个Controller类做为swag ...
分类:其他好文   时间:2017-10-27 15:58:06    阅读次数:201
BZOJ-1407: [Noi2002]Savage (扩展欧几里得)
1407: [Noi2002]Savage Description Input 第1行为一个整数N(1<=N<=15),即野人的数目。 第2行到第N+1每行为三个整数Ci, Pi, Li表示每个野人所住的初始洞穴编号,每年走过的洞穴数及寿命值。 (1<=Ci,Pi<=100, 0<=Li<=10^6 ...
分类:其他好文   时间:2017-10-27 15:55:02    阅读次数:219
0_Simple__cppIntegration
引用已经编好的 .cu 和 .cpp 代码来混合使用。在 main.cpp 中调用了使用GPU的 cppIntegration.cu (测试函数也在其中) 和使用CPU的 cppIntegration_gold.cpp 。计算的内容是将加密过的字符串 "hello world" 解密并进行显示。 源 ...
分类:其他好文   时间:2017-10-27 15:48:38    阅读次数:167
Lua中使用table实现的其它5种数据结构
Lua中使用table实现的其它5种数据结构 lua中的table不是一种简单的数据结构,它可以作为其他数据结构的基础,如:数组,记录,链表,队列等都可以用它来表示。 1、数组 在lua中,table的索引可以有很多种表示方式。如果用整数来表示table的索引,即可用table来实现数组,在lua中 ...
分类:其他好文   时间:2017-10-27 15:39:31    阅读次数:151
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!