Http://poj.org/problem? Id = 1190

/* This is an enumeration search of the radius and height, however, pruning is required */# include # include # include # include using namespace std; int n, m, minv [21], mins [21], best; void dfs (int M, int v, int s, int r, int h) {int I, j,

POJ 3080 Blue Jeans (KMP)

Obtain the longest Lexicographic Order required by the common subsequence Enumerate all substrings In the first string and then perform KMP on each string. Find the target substring I have learned how to use the strncpy function.   # Include #

POJ 3984 maze (DFS ))

Maze ProblemsTime Limit: 1000 MS Memory Limit: 65536 KTotal Submissions: 6322 Accepted: 3673 Description Define a two-dimensional array: Int maze [5] [5] = { 0, 1, 0, 0, 0, 0, 1, 0, 1, 0, 0, 0, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 0, };It represents

Poj 2391 (Floyd + maximum stream + binary)

There are n lawns, some cows graze on the grass, there are m roads between the lawns, and some lawns have shelter from rain. Each shelter is limited, the minimum time required to allow all cows to enter a rain shelter is given through each

(Step3.3) hdu 1059 (Dividing -- multiple backpacks

The value is 1 ~ The number of 6 stones. Ask if you can divide the values of these stones equally...   Solution: Multiple backpacks 1) A typical description of multiple backpacks is as follows: n items are provided, and the size of the backpack is V.

Poj 2135 (basic fee flow)

From 1 to n and then to 1, each side can only walk once, seeking the shortest distance. Graph creation: each side can only go once, that is, the traffic is 1, the source point is added to connect with 1, the capacity is 2, the cost is 0, the

HDU4626 + game

/* For the current user, if mat [n] [m] = 0 after completing his/her operations, the current user is the winner. Because if mat does not exist in other positions, you must win. If mat exists, let the next position reverse the one. */# include #

Hdu 1026 Ignatius and the Princess I

Ignatius and the Princess ITime Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/32768 K (Java/Others)Total Submission (s): 10006 Accepted Submission (s): 3004Special Judge Problem DescriptionThe Princess has been abducted by the BEelzebub feng5

HDU3652: B-number (Digital DP)

Problem DescriptionA wqb-number, or B-number for short, is a non-negative integer whose decimal form contains the sub-string "13" and can be divided by 13. for example, 130 and 2613 are wqb-numbers, but 143 and 2639 are not. your task is to

POJ3207 + Tarjan + 2-sat

/* 2-sat question: Given a circle, some vertices on the circle. Line 2.1. Some lines are provided. These lines can be connected in the circle or out of the circle. Is it possible that all lines are completely painted and do not overlap. Idea: draw a

Sort container elements

# Include # include # include # include # include # include using namespace std; bool isShorter (const string & s1, const string & s2) {return s1.size () = 6;} string make_plural (size_t ctr, const string & word, const string & ending)

Ultraviolet A 424

One of the first users of BIT's new supercomputer was Chip Diller. He extended his activation of powers of 3 to go from 0 to 333 and he got Ed taking various sums of those numbers. ''This supercomputer is great, ''remarked Chip. ''I only wish

Hdu 1045 Fire Net (retrospective search)

Search, backtracking !!! A person's life cannot avoid making small mistakes !!! You can go back to mistakes! It cannot be wrong all the time !!! # Include # Include Int visit [10] [10];Char map [10] [10];Int n, ans, ss, t; Int judge (int x, int y){

Codeforces Beta Round #32

When the time is not good, continue to water CF... A: Reconnaissance Enumeration   B: Borze Simulation   C: Flea Calculate the maximum number of locations, and then calculate the number of locations.   LL n , m , s;int main () { #ifndef

CodeForces #196 (Div. 2) 337D Book of edevil (tree dp)

Question: Click to open the link   QuestionFor a tree with n nodes, the distance between any two nodes is the shortest Number of edges connecting two nodes.There is a "Demon book" at a node in the tree. This book will affect all nodes within it d.It

Codeforces Round #196 (Div. 2)

A. PuzzlesTime limit per test1 secondMemory limit per test256 megabytesInputstandard inputOutputstandard outputThe end of the school year is near and Ms. manana, the teacher, will soon have to say goodbye to a yet another class. she decided to

POJ2349 + Prim

/* Prim: given some points, a satellite can connect two points, and there is a certain distance between points and points. Ask the minimum distance that can connect all points. */# Include # include # include # include # include # include #

POJ2348 + game

/* Key game state: the larger number is more than 2 times the number of decimal places. */# Include # include # include # include # include # include # include # include # include # include using namespace std; typedef long int64; //

Plan hdu 2102 A (priority queue + dfs)

When the dfs value is returned, the return values of the two Nos are different. The wrong one is-100, and the other is-10. It is definitely incorrect !! Hey, you have found it, changed it, and submitted it! By the way !! %

HDU2108-Shape of HDU

Calculate the Geometric Convex Hull problem. Use the cross product to determine whether all vertices meet the same direction of p1 (x1, y1), p2 (x2, y2), p3 (x3, y3 ); based on (x1-x3) * (y2-y3)-(x2-x3) * (x1-y3 ); #include #include #include

Total Pages: 5902 1 .... 5513 5514 5515 5516 5517 .... 5902 Go to: GO

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.