码迷,mamicode.com
首页 >  
搜索关键字:locate find    ( 25171个结果
【HDOJ】1325 Is It A Tree?
并查集。需要考虑入度。 1 #include 2 #include 3 4 #define MAXNUM 10005 5 6 int bin[MAXNUM]; 7 int degree[MAXNUM]; 8 int nums[MAXNUM]; 9 10 int find(int x) {11...
分类:其他好文   时间:2014-06-02 21:31:31    阅读次数:219
百度之星2014复赛 - 1001 - Find Numbers
先上题目:Find NumbersTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 26Accepted Submission(s): 20Spec...
分类:其他好文   时间:2014-06-02 17:15:22    阅读次数:267
Find them, Catch them
DescriptionThe police office in Tadu City decides to say ends to the chaos, as launch actions to root up the TWO gangs in the city, Gang Dragon and Ga...
分类:其他好文   时间:2014-06-02 09:38:19    阅读次数:219
Leetcode: Longest Palindromic Substring. java
Given a stringS, find the longest palindromic substring inS. You may assume that the maximum length ofSis 1000, and there exists one unique longest pa...
分类:编程语言   时间:2014-06-02 09:22:03    阅读次数:328
linux删除乱码文件
不知道大家有没有碰到这种文件,因为是乱码,文件无法删除,这时我们就可以考虑用下面的命令进行删除文件或目录 ls -i //列出文件节点 find ./ -inum XXX(节点号) -print -exec rm -rf {} \; //删除节点号文件 find . -inum XXXX(节点号) ...
分类:系统相关   时间:2014-06-02 06:37:25    阅读次数:370
leetcode -- 3 sum
3-sum    题目描述: Given an array S of n integers, are there elements a, b, c in S such that a + b + c = 0? Find all unique triplets in the array which gives the sum of zero. 题目要求: Elements...
分类:其他好文   时间:2014-06-01 17:31:27    阅读次数:471
windows编程之文件夹遍历
利用windows的API,FindFirstFile和FileNextFile,采用递归遍历指定文件夹中的所有文件及文件夹,第一次windows编程,代码写的很臃肿难看,请大家多多包涵! #include #include #include #include #define MAXN 100005 using namespace std; void surf(WIN32_FIND_DAT...
分类:Windows程序   时间:2014-06-01 14:11:51    阅读次数:460
Dungeon Master
Dungeon MasterTime Limit: 1000MSMemory Limit: 65536KTotal Submissions: 15868Accepted: 6162DescriptionYou are trapped in a 3D dungeon and need to find ...
分类:其他好文   时间:2014-06-01 12:16:08    阅读次数:147
Find The Multiple
Find The MultipleTime Limit: 1000MSMemory Limit: 10000KTotal Submissions: 16995Accepted: 6921Special JudgeDescriptionGiven a positive integer n, write...
分类:其他好文   时间:2014-06-01 11:27:41    阅读次数:176
projecteuler---->problem=10----Summation of primes
title: The sum of the primes below 10 is 2 + 3 + 5 + 7 = 17. Find the sum of all the primes below two million. 翻译: 10以下的质数的和为2 + 3 + 5 + 7 = 17。 请求出200,0000以下所有质数的和。 import math,time d...
分类:其他好文   时间:2014-06-01 09:12:31    阅读次数:239
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!