码迷,mamicode.com
首页 > 其他好文
集训第五周动态规划 G题 回文串
DescriptionA palindrome is a symmetrical string, that is, a string read identically from left to right as well as from right to left. You are to write...
分类:其他好文   时间:2015-08-12 21:33:11    阅读次数:113
Tree(prime)
TreeTime Limit : 6000/2000ms (Java/Other)Memory Limit : 32768/32768K (Java/Other)Total Submission(s) : 2Accepted Submission(s) : 2Problem DescriptionT...
分类:其他好文   时间:2015-08-12 21:34:18    阅读次数:141
BaLaBaLa
#include#include#include#include#includeusing namespace std;struct node{ friend bool operator Q; for(int i=1;i<=n;i++) { node k; k.ID=i; k.Time=...
分类:其他好文   时间:2015-08-12 21:34:46    阅读次数:128
杭电1716--排列2
排列2Time Limit: 1000/1000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 5634Accepted Submission(s): 2159Problem Descrip...
分类:其他好文   时间:2015-08-12 21:32:07    阅读次数:118
新笔记
package com.journaldev.util;import java.util.HashMap;import java.util.Iterator;import java.util.Map;import java.util.concurrent.ConcurrentHashMap;publ...
分类:其他好文   时间:2015-08-12 21:32:57    阅读次数:123
[Leetcode] Two Sum
1 import java.util.*; 2 3 public class Solution { 4 public int[] twoSum(int[] nums, int target) { 5 Map map = new HashMap(); 6 i...
分类:其他好文   时间:2015-08-12 21:32:25    阅读次数:80
Balanced Binary Tree
Given a binary tree , determine if it is height-balancedimplement method is in java language,iterator through the height rather than the depthpublic i...
分类:其他好文   时间:2015-08-12 21:32:32    阅读次数:116
集训第五周动态规划 F题 最大子矩阵和
Given a two-dimensional array of positive and negative integers, a sub-rectangle is any contiguous sub-array of size 1*1 or greater located within the...
分类:其他好文   时间:2015-08-12 21:30:31    阅读次数:106
NEU OJ 1644 Median I
优先级队列#include#include#include#include#includeusing namespace std;int n;int main(){ while(~scanf("%d",&n)) { int tot=0; priority_qu...
分类:其他好文   时间:2015-08-12 21:32:17    阅读次数:144
ACM 01背包问题
DescriptionThe aspiring Roy the Robber has seen a lot of American movies, and knows that the bad guys usually gets caught in the end, often because th...
分类:其他好文   时间:2015-08-12 21:30:56    阅读次数:123
IPC对象的持续性
转载:http://book.51cto.com/art/201006/207275.htm《UNIX网络编程:第2版.第2卷,进程间通信》本书全面深入地讲解了各种进程间通信形式,包括消息传递、同步、共享内存及远程调用(RPC)。书中包含了大量经过优化的源代码,帮助读者加深理解。这些源代码可以从图灵...
分类:其他好文   时间:2015-08-12 21:28:35    阅读次数:179
[Leetcode] Two Sum II - Input array is sorted
这里因为是有序的,可以利用这个有序性来进行查找left=0,right=num.length-1;while(lefttarget) right--; else return true;}return false;
分类:其他好文   时间:2015-08-12 21:30:14    阅读次数:83
Qt类中使用定时器
QT定时器只能使用在进程或线程中。 QT类中如果需要定时器,可以把定时工作安排在一个线程中执行。class aaa : public QThread{ Q_OBJECT ...protected: //重写run函数 void run();public...
分类:其他好文   时间:2015-08-12 21:30:21    阅读次数:143
ictclas bug修复
大体上参考链接:http://blog.csdn.net/luojinping/article/details/8788743最后注意下SegTag.java文件1 public SegTag(int segPathCount) {2 this.segPathCount = ...
分类:其他好文   时间:2015-08-12 21:30:42    阅读次数:147
poj 1273 Drainage Ditches
http://poj.org/problem?id=1273Drainage DitchesTime Limit:1000MSMemory Limit:10000KTotal Submissions:62651Accepted:24118DescriptionEvery time it rains ...
分类:其他好文   时间:2015-08-12 21:27:31    阅读次数:105
lua闭包的理解函数与表的几种表达方法
最近工作不是很忙,所以就自学了一些lua的知识,但是才看了两个多小时就遇见了一个问题——闭包。好吧,我是看见它第一眼的时候以为是和close之类有关的巴拉巴拉。。。。(原谅我的无知)!但是越往下看越迷茫,所以就网上看了好多大师写的东西学习学习,特此记录一下,以便日后看到不会。。。。。被人鄙视在lua...
分类:其他好文   时间:2015-08-12 21:29:10    阅读次数:107
转载【趣味算术】能被2、3、5、7、9、11、13整除的数的特点
原文地址 http://blog.sina.com.cn/s/blog_76b0cde40100t32r.html被2整除的数是偶数。被3整除的数必须各个位数上的数加起来为三的倍数,比如136,1+3+6=10不行,147=1+4+7=12,就可以。被5整除个位为0或者5.能被7整除的数的特征一个数...
分类:其他好文   时间:2015-08-12 21:26:59    阅读次数:109
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!