码迷,mamicode.com
首页 > 其他好文
【BZOJ 1827】 [Usaco2010 Mar]gather 奶牛大集会
思路题~dfs...
分类:其他好文   时间:2015-03-17 15:56:36    阅读次数:126
实现对特定内容改变字体颜色的TextView
最近产品中需要一个搜索功能,比如搜索Android,搜索得到的内容中需要对所有的Android进行标红的处理,就自己重写了个textView实现了这个功能。上代码: package com.amuro.custom_text_view; import java.util.ArrayList; import java.util.List; import android.content.Cont...
分类:其他好文   时间:2015-03-17 15:57:33    阅读次数:118
Dynamics CRM 2015 New Feature (6): Bussiness Flow Contidtion & Branche (二)
在上篇文章中,我们讨论了Business Flow的一些可配置的Feature,那么今天我们来简单看看Business Flow中的可编程的Feature。新系统为我们提供了一些编程API,在Dynamics CRM 2013我们还是不能对BF进行编程的,相信通过很好的利用这些Feature,能开发出更加敏捷的系统。下面我们来简单看看系统为我们提供的API吧:...
分类:其他好文   时间:2015-03-17 15:56:48    阅读次数:132
EventBus 和Otto的区别
EventBus 和Otto的区别 Otto is another event bus library for Android; actually it’s a fork of Guava’s EventBus. greenrobot’s EventBus and Otto share some basic semantics (register, post, unregister, …), but...
分类:其他好文   时间:2015-03-17 15:56:22    阅读次数:203
HDU3461(并查集)
题目链接:点击打开链接 解题思路: 一道看不出来是并查集的并查集题,做来做去还是觉得九野的题集不错。题目大意就是有一个n位的密码串,每位可能是a到z间的任意一个字母。m行输入区间[ l , r],代表这个区间可以同时做+1操作,如果一组密码通过有限次增加变成另一组密码,那么我们认为这两组密码是相同的。求在m个区间下有多少种不同的密码。 暴力来看是求26^n,当有cnt个不同区间加进来...
分类:其他好文   时间:2015-03-17 15:56:11    阅读次数:156
分支-03. 三天打鱼两天晒网
分支-03. 三天打鱼两天晒网中国有句俗语叫“三天打鱼两天晒网”。假设某人从某天起,开始“三天打鱼两天晒网”,问这个人在以后的第N天中是“打鱼”还是“晒网”?输入格式:输入在一行中给出1个不超过1000的正整数N。输出格式:在一行中输出此人在第N天中是“Fishing”(即“打鱼”)还是“Drying”(即“晒网”),并且输出“in day N”。输入样例1: 103 输出样例1: Fishi...
分类:其他好文   时间:2015-03-17 15:55:57    阅读次数:94
九度 OJ 1554:区间问题 (set +前缀 +map)
时间限制:1 秒 内存限制:128 兆 特殊判题:否 提交:3468 解决:291 题目描述: 给定一个数组,判断数组内是否存在一个连续区间,使其和恰好等于给定整数k。 输入: 输入包含多组测试用例,每组测试用例由一个整数n(1 接下去一行为n个整数,描述这个数组,整数绝对值不大于100。 最后一行为一个整数k(大小在int范...
分类:其他好文   时间:2015-03-17 15:53:19    阅读次数:198
dos定时运行,dos timer
dos定时运行,dos timer...
分类:其他好文   时间:2015-03-17 15:52:33    阅读次数:153
彩色图像--图像增强 图像平滑
彩色图像平滑...
分类:其他好文   时间:2015-03-17 15:53:33    阅读次数:148
LeetCode Length of Last Word
1. 题目Given a string s consists of upper/lower-case alphabets and empty space characters ' ', return the length of last word in the string.If the last word does not exist, return 0.Note: A word is defi...
分类:其他好文   时间:2015-03-17 15:52:52    阅读次数:131
(hdu 7.1.4)Surround the Trees(求图报的周长——计算将所有点都包围起来的最小凸多边形的周长)
题意:Surround the TreesTime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission(s): 209 Accepted Submission(s): 104 Problem DescriptionThere are a lot of trees in...
分类:其他好文   时间:2015-03-17 15:50:50    阅读次数:135
UVA 1584 Circular Sequence
1584 - Circular Sequence Some DNA sequences exist in circular forms as in the following figure, which shows a circular sequence ``CGAGTCAGCT", that is, the last symbol ``T" in ``CGAGTCAGCT" is conn...
分类:其他好文   时间:2015-03-17 15:50:25    阅读次数:156
[LeetCode]Same Tree
Given two binary trees, write a function to check if they are equal or not. Two binary trees are considered equal if they are structurally identical and the nodes have the same value. 这道题是要判断两棵树是不...
分类:其他好文   时间:2015-03-17 15:49:15    阅读次数:88
You have ettempted to queue to many files.You may select one files.
swfupload 文件上传,解决 文件太多问题。 You have ettempted to queue to many files.You may select one files....
分类:其他好文   时间:2015-03-17 15:50:42    阅读次数:157
switch case is in protected scope解决办法
出现错误:switch case is in protected scope 一半情况下这种写法: switch (XXX) {         case XXX:             XXXX             break;                      default:             break;     } 解决办法...
分类:其他好文   时间:2015-03-17 15:49:21    阅读次数:154
[LeetCode]Remove Duplicates from Sorted Array
Given a sorted array, remove the duplicates in place such that each element appear only once and return the new length. Do not allocate extra space for another array, you must do this in place wit...
分类:其他好文   时间:2015-03-17 15:49:28    阅读次数:128
条件触发和边缘触发 及 epoll 的优点
条件触发: 只要输入缓冲有数据就会一直通知该事件 边缘触发: 输入缓冲收到数据时仅注册1次该事件,即使输入缓冲中还留有数据,也不会再进行注册 水平触发(level-triggered,也被称为条件触发):只要满足条件,就触发一个事件(只要有数据没有被获取,内核就不断通知你) 边缘触发(edge-triggered): 每当状态变化时,触发一个事件 举个读socket的例子,假定经过长时间的沉默后,现...
分类:其他好文   时间:2015-03-17 15:47:45    阅读次数:128
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!