I love frameworks. As soon as I dropped my programmer’s ego and learned to embrace well conceived conventions over configuration my development and deployment times felt the benefit. On the other...
分类:
Web程序 时间:
2014-10-11 23:13:17
阅读次数:
422
1205 单词翻转:题目描述 Description给出一个英语句子,希望你把句子里的单词顺序都翻转过来输入描述 Input Description输入包括一个英语句子。输出描述 Output Description按单词的顺序把单词倒序输出样例输入 Sample InputI love you样例...
分类:
其他好文 时间:
2014-10-10 12:29:24
阅读次数:
251
4271: Love Me, Love My PermutationDescriptionGiven a permutation of n: a[0], a[1] ... a[n-1], ( its elements range from 0 to n-1, For example: n=4, on...
分类:
其他好文 时间:
2014-10-09 23:48:23
阅读次数:
256
Wall Painting
Time Limit: 10000/5000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 1265 Accepted Submission(s): 360
Problem Description
Ms.Fang love...
分类:
其他好文 时间:
2014-10-09 19:55:17
阅读次数:
232
package com.love.test;
import java.util.Scanner;
/**
* @author huowolf
*快速排序实现
*快排是十分优秀的排序算法。
*核心:分治法(1.选基元2.分区3.递归子列)
*/
public class QuickSort {
public static void quickSort(int[] arr,int...
分类:
编程语言 时间:
2014-10-07 18:11:13
阅读次数:
183
package com.love.test;
import java.util.Scanner;
/**
* @author huowolf
* 选择排序实现
*思想:每趟从待排序的记录序列中选择关键字最小的记录放置到已排序表的最前位置,直到全部排完。
*/
public class SelectSort {
public static void selectSort(int[] ...
分类:
编程语言 时间:
2014-10-07 16:34:23
阅读次数:
168
java.lang.ClassNotFoundException: Didn't find class "stu.love.neihan.MainActivity" on path: DexPathList 解决方案:
今天遇到一个Bug:
具体的bug 显示:
10-06 22:34:43.019: E/AndroidRuntime(10813): Caused by:...
分类:
编程语言 时间:
2014-10-07 01:07:42
阅读次数:
499
Good Luck in CET-4 Everybody!Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 4762Accepted Submissi...
分类:
其他好文 时间:
2014-10-05 13:21:58
阅读次数:
173
题目:有2中面条各n碗,每次抛硬币判断吃哪一种(到一种吃完为止),问抛硬币的数学期望。
分析:动态规划,概率dp。求出每种结束状态(即,有一种吃完)的概率,分别乘以步长即为期望。
大黄解法:状态位剩余的碗数,逆向求解,状态方程:
DP[ i ][ j ] = (DP[ i-1 ][ j ]+DP[ i ][ j-1 ])/2 + 1 ...
分类:
其他好文 时间:
2014-10-04 21:41:47
阅读次数:
193
http://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&page=show_problem&problem=1620
题意:
给出一个文本串和若干个模式串,问模式串是否在文本串中出现过。
分析:
简单粗暴的AC自动机模板题,要注意模式串可能有重复的情况。
/*
*
* Aut...
分类:
其他好文 时间:
2014-10-04 21:14:17
阅读次数:
327