题目我要开始练习一些java的简单编程了^v^import java.io.*;import
java.util.*;import java.math.*;public class Main { /** * @param args */ public
static voi...
分类:
编程语言 时间:
2014-05-01 10:03:42
阅读次数:
411
注意变换思维,然后就是水题。(如果卡时还可以进一步二分优化。)#include long
existed[10000][32];int main(void){ int N;// freopen("poj2443.txt", "r", stdin);
scanf("%d", &N);...
分类:
其他好文 时间:
2014-05-01 09:15:47
阅读次数:
373
首先想到的是,将这个数进行素因子分解,得到所有的因子,然后取最大的。
首先写一个判断一个数是否是素数的方法: #judge a number whether a prime def
judgePrime(self,number,pme): if number < 2: ...
分类:
编程语言 时间:
2014-05-01 09:05:26
阅读次数:
3333
本题与POJ 1655的区别是要把所有重心的点按顺序输出出来。// poj3107
Godfather#include #include #define NDEBUG#define MAXN 50005using namespace
std;int N;int edgefw[MAXN*2], ...
分类:
其他好文 时间:
2014-05-01 08:53:09
阅读次数:
284
runtime
bundle/vim-pathogen/autoload/pathogen.vimset nocompatible " be iMproved,
requiredfiletype off " required" set th...
分类:
其他好文 时间:
2014-05-01 08:38:20
阅读次数:
327
void listFiles(){ namespace fs = boost::filesystem;
boost::filesystem::path path=boost::filesystem::current_path();
fs::directory_iterator item_beg...
分类:
其他好文 时间:
2014-05-01 05:23:07
阅读次数:
310
Get Luffy OutTime Limit:2000MSMemory
Limit:65536KTotal Submissions:7295Accepted:2778DescriptionRatish is a young man
who always dreams of being a hero...
分类:
其他好文 时间:
2014-05-01 04:56:26
阅读次数:
392
目录[-]使用 boost::filesystem 的第一个程序清单 1.
用于确定某个文件的类型是否为 Directory 的代码了解 Boost path 对象清单 2. 创建 Boost path 对象的方法清单 3.
使用本机格式初始化 path清单 4. 使用可移植格式初始化 pathpa...
分类:
其他好文 时间:
2014-05-01 04:25:38
阅读次数:
417
这个方法太厉害了
别人的记录一下#include#include#include#include#include#include#includeusing namespace
std;#define MAX_PRIME 31700#define PRIME_NUM 3500int Primes[ P...
分类:
其他好文 时间:
2014-05-01 03:48:49
阅读次数:
276
裸的树的重心,要注意的问题是此题的边并没有给出准确的父子拓扑关系,所以需要建双向的边,所以以后要看清题意做仔细分析。可以知道一个结点的子树必定是
它的拓扑子树 和 根树去掉这个拓扑结点树本身,思路也就很明显了。 1 // poj1655 Balancing Act 2 #include 3 #in....
分类:
其他好文 时间:
2014-05-01 03:19:04
阅读次数:
263