码迷,mamicode.com
首页 >  
搜索关键字:rep    ( 1080个结果
LUA string库详解
1. string库中所有的字符索引从前往后是1,2,...;从后往前是-1,-2,... 2. string库中所有的function都不会直接操作字符串,而是返回一个结果 s = "[abc]" string.len(s) <==返回5 string.rep("abc", 2) <==返回"ab ...
分类:其他好文   时间:2018-01-22 17:40:57    阅读次数:185
Gym - 101102B
注意到使用的代价均是2 7连续的,直接暴力必然有解 C++ include include include include include define rep(i,j,k) for(int i=j;i=k;i ) using namespace std; const int maxn = 1e5+ ...
分类:其他好文   时间:2018-01-22 15:18:26    阅读次数:143
HDU - 1427 / UESTC - 1252 经典dfs
很好奇为什么hzwer那种稍改一下还是无法过样例,代码我没看出问题 换了一种用桶组合挑取两个数不断回溯的做法 这是HDU1427的代码,后者改一改就行了 C++ include define rep(i,j,k) for(int i=j;i s[1] s[2] s[3] s[4]){ rep(i,1 ...
分类:其他好文   时间:2018-01-20 14:06:25    阅读次数:143
Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; these UUIDs must be different for replication to work
配置MySQL主从复制,遇到报错 Fatal error: The slave I/O thread stops because master and slave have equal MySQL server UUIDs; these UUIDs must be different for rep ...
分类:数据库   时间:2018-01-17 22:27:35    阅读次数:210
docker centos yum 源
aliyun yum-config-manager --add-repo https://mirrors.aliyun.com/docker-ce/linux/centos/docker-ce.repo mirrors.ustc.edu.cn yum-config-manager --add-rep ...
分类:其他好文   时间:2018-01-17 11:29:05    阅读次数:117
使用pytesseract识别简单验证码
from PIL import Image import pytesseract from pytesseract import * rep={'O':'0', #替换列表 'I':'1','L':'1', 'Z':'2', 'S':'8' }; def initTable(threshold=14 ...
分类:其他好文   时间:2018-01-17 01:23:51    阅读次数:166
POJ - 3276 开关问题
反转问题,要注意每次rev操作是严格等于k的,否则非法 还有要求的不是尽量小的k C++ include include include include define rep(i,j,k) for(int i=j;i P; bool rev[maxn];//rev[i]:[i..i+k 1] boo ...
分类:其他好文   时间:2018-01-17 00:53:54    阅读次数:128
SPOJ - SUBLEX 【后缀自动机】
题目 求第K小子串 题解 建好SAM后,拓扑排序,反向传递后面所形成的串的数量 最后从根开始,按照儿子形成串的数量与k比较走就好了 C++ include include include include include define LL long long int define REP(i,n) ...
分类:其他好文   时间:2018-01-16 23:55:08    阅读次数:174
LUA string库详解
1. string库中所有的字符索引从前往后是1,2,...;从后往前是-1,-2,... 2. string库中所有的function都不会直接操作字符串,而是返回一个结果 s = "[abc]" string.len(s) <==返回5 string.rep("abc", 2) <==返回"ab ...
分类:其他好文   时间:2018-01-16 14:06:15    阅读次数:148
挑战程序设计竞赛 P131 区间DP
书上好多题没补 PS.整个DP是根据Q来划分的,dalao的代码就是不一样啊 C++ include define rep(i,j,k) for(int i=j;i T; while(T ){ cin P Q; rep(i,1,Q) cin A[i];A[Q+1]=P+1; memset(dp,0, ...
分类:其他好文   时间:2018-01-16 13:49:18    阅读次数:123
1080条   上一页 1 ... 33 34 35 36 37 ... 108 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!