码迷,mamicode.com
首页 >  
搜索关键字:裸    ( 3773个结果
poj1286 Necklace of Beads【裸polya】
很裸的polya,不过我看polya看了很久 吉大ACM模板里面也有 #include #include #include using namespace std; long long gcd(long long a,long long b) { return b==0?a:gcd(b,a%b); } int main() { #ifndef ONLINE_JUDGE //...
分类:其他好文   时间:2014-06-27 10:46:11    阅读次数:181
UVA 756 - Biorhythms(数论)
756 - Biorhythms 题目链接 基本就是裸的中国剩余定理。 代码: #include #include const int M = 23 * 28 * 33; const int m[3] = {23, 28, 33}; int p[3], d; int gcd(int a, int b, int &x, int &y) { if (!b) {x = ...
分类:其他好文   时间:2014-06-26 14:30:56    阅读次数:287
裸设备
新建LVM卷:#lvcreate-L2048M-nlv_systemoracledg#lvcreate-L1024M-nlv_redo01oracledg#lvcreate-L1024M-nlv_redo02oracledg#lvcreate-L1024M-nlv_redo03oracledg#lvcreate-L2048M-nlv_tools01oracledg#lvcreate-L2048M-nlv_rbsoracledg#lvcreate-L2048M-nlv_undotdbs01oracled..
分类:其他好文   时间:2014-06-26 06:15:55    阅读次数:272
POJ 2891 Strange Way to Express Integers 中国剩余定理
裸题,上模版,,嘿嘿 #include #include #include #include #include #include #include #include #include using namespace std; #define ll __int64 ll gcd(ll a, ll b) { return b == 0 ? a : gcd(b, a%b); } //求一组解(x,y...
分类:其他好文   时间:2014-06-25 19:51:56    阅读次数:138
HDU 3579 Hello Kiki 中国剩余定理(合并方程
题意: 给定方程 res % 14 = 5 res % 57 = 56 求res 中国剩余定理裸题 #include #include #include #include #include #include #include #include using namespace std; #define N 10005 #define ll __int64 ll gcd(ll a, ll ...
分类:其他好文   时间:2014-06-24 23:12:29    阅读次数:186
SPOJ 1811LCS Longest Common Substring
后缀自动机裸题.... Longest Common Substring Time Limit: 2000MS   Memory Limit: Unknown   64bit IO Format: %lld & %llu [Submit]   [Go Back]   [Status]   Description A st...
分类:其他好文   时间:2014-06-24 22:15:40    阅读次数:240
Cocos2d-x 游戏发布攻防篇01:防止打包党的小技巧
其实这方面的心得我倒是没有多少,也没什么高深的心得,只不过我曾经有4、5个游戏被打包过而已(小若:赤裸裸地炫耀你的失败)。虽然我这文章标题写着“攻防篇01”,但不代表就一定有“攻防篇02”,只是,随意取的。(小若:敢负责任一点吗?) 这里科普一下,什么叫做打包党。打包党是一种职业,一种不光彩的职业,他们专门去下载别人的游戏安装包,反编译,然后加入自己的广告,最后重新打包上传到各个市场,从而谋取收益...
分类:其他好文   时间:2014-06-24 19:18:00    阅读次数:184
嵌入式Linux学习笔记(基于S5PV210 TQ210)
包括如下内容: 1、开发环境搭建 2、制作交叉编译器 3、裸机编程 4、移植u-boot(基于u-boot-2014.4版本) 5、移植内核 6、制作文件系统 7、驱动 8、综合应用 1 前言        学习嵌入式,首先需要学好C语言,推荐大家看郝斌的C语言视频教程,不要问我视频在哪。这里引用一...
分类:系统相关   时间:2014-06-22 22:10:48    阅读次数:673
Mark一下, dp状态转移方程写对,但是写代码都错,poj 1651 poj 1179
dp题: 1、写状态转移方程; 2、考虑初始化边界,有意义的赋定值,还没计算的赋边界值; 3、怎么写代码自底向上计算最优值 今天做了几个基础dp,全部是dp方程写对但是初始化以及计算写错 先是poj 1651 其实就是个赤裸裸的矩阵连乘,dp方程很容易写出                       dp[i][j]=min(dp[i][k]+dp[k+1][j]+r[i]*c[k]*...
分类:其他好文   时间:2014-06-22 19:29:41    阅读次数:157
zoj-3792-Romantic Value-最小割+数值转化
如果不需要求边的个数的话,就是一个裸的最小割问题。 求边的个数就用边的权值记录一下。 #include #include #include #include #include using namespace std; #define INF 99999999 #define LL long long const LL maxn =55; const LL maxm =4400; con...
分类:其他好文   时间:2014-06-22 11:15:00    阅读次数:167
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!