上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 40 下一页

2013年8月24日

UVA 11922 Permutation Transformer Splay

摘要: DescriptionPermutation TransformerWrite a program to transform the permutation1, 2, 3,...,naccording tominstructions. Each instruction(a,b)means to take out the subsequence from thea-th to theb-th element, reverse it, then append it to the end.InputThere is only one case for this problem. The first 阅读全文

posted @ 2013-08-24 18:48 电子幼体 阅读(140) 评论(0) 推荐(0) 编辑

对拍程序

摘要: *.bat@echo off :loop rand.exe > data.in std.exe std.out my.exe my.out fc my.out std.out if not errorlevel 1 goto loop pause goto loop 阅读全文

posted @ 2013-08-24 18:43 电子幼体 阅读(127) 评论(0) 推荐(0) 编辑

2013年8月23日

hdu 3726 Graph and Queries 名次树

摘要: Graph and QueriesTime Limit: 10000/5000 MS (Java/Others)Memory Limit: 32768/32768 K (Java/Others)Total Submission(s): 1333Accepted Submission(s): 267Problem DescriptionYou are given an undirected graph with N vertexes and M edges. Every vertex in this graph has an integer value assigned to it at the 阅读全文

posted @ 2013-08-23 09:56 电子幼体 阅读(136) 评论(0) 推荐(0) 编辑

2013年8月22日

白书上的Treap模板

摘要: 改良#include #include #include #define MAX 100using namespace std;const int MAX_NODE=100;struct Node{ Node* ch[2];//左右子树 int fix;//优先级。数值越大,优先级越高 int key; int size;//以它为根的子树的总结点数 bool operatorsize; if (ch[1]!=NULL) size+=ch[1]->size; }};struct Treap{ Node nodePool[MAX_NODE]... 阅读全文

posted @ 2013-08-22 20:09 电子幼体 阅读(126) 评论(0) 推荐(0) 编辑

2013年8月12日

uva 11178 Morley's Theorem 点线

摘要: DescriptionProblem DMorley’s TheoremInput:Standard InputOutput:Standard OutputMorley’s theorem states that that the lines trisecting the angles of an arbitrary plane triangle meet at the vertices of an equilateral triangle. For example in the figure below the tri-sectors of angles A, B and C has int 阅读全文

posted @ 2013-08-12 10:16 电子幼体 阅读(133) 评论(0) 推荐(0) 编辑

2013年8月10日

POJ 2112 Optimal Milking 二分图最大匹配+二分答案

摘要: Optimal MilkingTime Limit:2000MSMemory Limit:30000KTotal Submissions:10010Accepted:3630Case Time Limit:1000MSDescriptionFJ has moved his K (1 15, a row is broken into successive lines of 15 numbers and a potentially shorter line to finish up a row. Each new row begins on its own line.OutputA single. 阅读全文

posted @ 2013-08-10 13:51 电子幼体 阅读(142) 评论(0) 推荐(0) 编辑

poj 1459 Power Network 最大流建图练习

摘要: Power NetworkTime Limit:2000MSMemory Limit:32768KTotal Submissions:20743Accepted:10866DescriptionA power network consists of nodes (power stations, consumers and dispatchers) connected by power transport lines. A node u may be supplied with an amount s(u) >= 0 of power, may produce an amount 0 #i 阅读全文

posted @ 2013-08-10 10:44 电子幼体 阅读(131) 评论(0) 推荐(0) 编辑

poj 3683 Priest John's Busiest Day 2-SAT

摘要: Priest John's Busiest DayTime Limit:2000MSMemory Limit:65536KTotal Submissions:7055Accepted:2405Special JudgeDescriptionJohn is the only priest in his town. September 1st is the John's busiest day in a year because there is an old legend in the town that the couple who get married on that da 阅读全文

posted @ 2013-08-10 10:09 电子幼体 阅读(125) 评论(0) 推荐(0) 编辑

2013年8月9日

poj 3678 Katu Puzzle 2-SAT

摘要: Katu PuzzleTime Limit:1000MSMemory Limit:65536KTotal Submissions:6702Accepted:2463DescriptionKatu Puzzle is presented as a directed graphG(V,E) with each edgee(a,b) labeled by a boolean operatorop(one of AND, OR, XOR) and an integerc(0 ≤c≤ 1). One Katu is solvable if one can find each vertexVia valu 阅读全文

posted @ 2013-08-09 19:41 电子幼体 阅读(152) 评论(0) 推荐(0) 编辑

poj 3648 Wedding 2-SAT

摘要: WeddingTime Limit:1000MSMemory Limit:65536KTotal Submissions:6919Accepted:2127Special JudgeDescriptionUp to thirty couples will attend a wedding feast, at which they will be seated on either side of a long table. The bride and groom sit at one end, opposite each other, and the bride wears an elabora 阅读全文

posted @ 2013-08-09 17:48 电子幼体 阅读(149) 评论(0) 推荐(0) 编辑

上一页 1 ··· 10 11 12 13 14 15 16 17 18 ··· 40 下一页

导航