码迷,mamicode.com
首页 >  
搜索关键字:being a good boy in    ( 3225个结果
atitit.表单验证 的dsl 本质跟 easyui ligerui比较
atitit.表单验证的dsl 本质跟 easyui ligerui比较    1. DSL 声明验证 1 2. 自定义规则 1 3. 正则表达式验证,可以扩展实现 2 4. 犯错误消息提示,generic canBeEmpty is good 3 5. Prevent the form to submit when invalid 3 6. 为空则不验证,不为空则验证,的实现 5 ...
分类:其他好文   时间:2014-07-26 15:09:30    阅读次数:316
Codeforces Round #258 D Count Good Substrings --计数
题意:由a和b构成的字符串,如果压缩后变成回文串就是Good字符串。问一个字符串有几个长度为偶数和奇数的Good字串。分析:可知,因为只有a,b两个字母,所以压缩后肯定为..ababab..这种形式,所以是good substrings,那么首尾字符肯定相同,于是就好搞了。用:odd[0],odd[...
分类:其他好文   时间:2014-07-26 14:14:45    阅读次数:219
5 Shell Scripts for Linux Newbies to Learn Shell Programming – Part II
To Learn something you need to do it, without the fear of being unsuccessful. I believe in practicality and hence will be accompanying you to the prac...
分类:系统相关   时间:2014-07-26 14:09:15    阅读次数:492
grep -n 查看字符串不为空失败
测试目的:目的:测试/bin/grep-q"root"menu.lst的用途结果:文本中是否包含root文字内容,如果是,返回0,如果不是,返回非零#!/bin/bash/bin/grep-q"root"menu.lstrc=$?if[$rc-ne"0"];thenecho"bad"elseecho"good"fi~目的:测试[](中间有一个空格)在grep中的用法/sbin/etht..
分类:其他好文   时间:2014-07-26 03:12:27    阅读次数:177
Codeforces 451D Count Good Substrings(组合数学)
题目链接:Codeforces 451D Count Good Substrings 题目大意:定义good string,就是就一个字符串的连续相同字符用一个该字符替代后,形成回文串的字符串。现在给出一个字符串,问说该字符串的子串中,为good string的串有多少个,分长度为奇数和偶数的输出。 解题思路:因为字符串的组成为a和b,所以只要是头尾相同的子串都是满足的。所以我们计算在...
分类:其他好文   时间:2014-07-26 03:03:36    阅读次数:268
codefroces451D - Count Good Substrings 数位DP
题意:给你n,m 问你n-m中有多少个数首位等于末位。解题思路:数位DP,从0-n有多少个,这样分开计算,首先把每一位所有可能都枚举出来,然后在一位一位的比对DP解题代码: 1 // File Name: 204a.cpp 2 // Author: darkdream 3 // Created Ti...
分类:其他好文   时间:2014-07-25 14:01:21    阅读次数:236
LeetCode "Longest Consecutive Sequence"
Comparison-based sorting takes O(nlgn), so hashset is a good idea. After keeping records of all numbers in the hashset, you start checking each number...
分类:其他好文   时间:2014-07-25 03:40:54    阅读次数:305
【leetcode刷题笔记】Decode Ways
A message containing letters fromA-Zis being encoded to numbers using the following mapping:'A' -> 1'B' -> 2...'Z' -> 26Given an encoded message conta...
分类:其他好文   时间:2014-07-24 21:56:32    阅读次数:219
HDU 1087 Super Jumping! Jumping! Jumping!
Problem DescriptionNowadays, a kind of chess game called “Super Jumping! Jumping! Jumping!” is very popular in HDU. Maybe you are a good boy, and know...
分类:其他好文   时间:2014-07-24 17:28:16    阅读次数:241
POJ3260——The Fewest Coins(多重背包+完全背包)
The Fewest CoinsDescriptionFarmer John has gone to town to buy some farm supplies. Being a very efficient man, he always pays for his goods in such a ...
分类:其他好文   时间:2014-07-24 17:11:36    阅读次数:326
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!