Super jumping! Jumping! Jumping!
Time Limit: 2000/1000 MS (Java/others) memory limit: 65536/32768 K (Java/Others)
Total submission (s): 156 accepted submission (s): 97
Problem description Nowadays, a kind of chess game called "super jumping!
Super jumping! Jumping! Jumping!
Time Limit: 2000/1000 MS (Java/others) memory limit: 65536/32768 K (Java/Others)Total submission (s): 9053 accepted submission (s): 3693 Problem descriptionnowadays, a kind of chess game called "super jumping! Jumping!
Super jumping! Jumping! Jumping! Problem descriptionnowadays, a kind of chess game called "super jumping! Jumping! Jumping !" Is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to
Problem DescriptionNowadays, a kind of chess game called "Super jumping! jumping! Jumping! "is very popular in HDU. Maybe you is a good boy, and know little about the this game, so I introduce it to you now. The game can be played by and more than the players. It consists of a chessboard (chessboard) and some chessmen (chess pieces), and all chessmen is marked by
HDU 1087 super jumping! Jumping! Jumping!
Http://acm.hdu.edu.cn/showproblem.php? PID = 1, 1087 Problem descriptionnowadays, a kind of chess game called "super jumping! Jumping! Jumping !" Is very popular in HDU. Maybe you are a g
Super jumping! jumping! jumping!
Time limit:2000/1000 MS (java/others) Memory limit:65536/32768 K (java/others)Total submission (s): 24374 Accepted Submission (s): 10740
Problem Description Nowadays, a kind of chess game called "Super jumping! jumping!
Problem descriptionnowadays, a kind of chess game called "super jumping! Jumping! Jumping !" Is very popular in HDU. Maybe you are a good boy, and know little about this game, so I introduce it to you now.
The game can be played by two or more than two players. it consists of a chessboard and some chessmen, and all chessmen are marked by a positive integer or
HDU 1087The main topic: given a sequence, can only go larger than the current position, not to look back, to find the maximum value. (In fact, the maximum ascending (discontinuous) subsequence and)Solution thinking: You can define the state dp[i] to indicate the maximum value of the ascending subsequence at the end of A[i], then the state transition equation can be obtained.Dp[i] = max (Dp[i], dp[j]+a[i]), where a[j]Understanding: The ascending sequence ending with a[i] can be obtained by addi
Super Jumping! Jumping! Jumping! Time Limit: 2000/1000 ms (Java/Other) Memory Limit: 65536/32768 K (Java/Other) Total Submission (s): 6 Accepted Submission (s): 5 Font: times New Roman | Verdana | GeorgiaFont Size: Drawing → Problem Description
Nowadays, a kind of chess game called "Super Jumping!
Time: 2016-03-27-15:51:40 Sunday
Title Number: [2016-03-27][hdu][1087][super jumping! jumping! Jumping!]
Analysis: dp[i] means to jump to the first position, the most points can be obtained, then dp[i] = max (Dp[i], dp[j] + v[i]) can jump from J to I
Problems encountered: the sum of sorts, a[1].v
#include
#include
using namespace
Title Link: http://acm.hdu.edu.cn/showproblem.php?pid=1087Test instructions is to give you the number of N, find out a sequence of the largest and, this sequence to meet the rules of increasing in turn;Ah, this problem has been done before, but a little impression is not but their own writing out, it is estimated that at that time did not know why write it, it turns out that the problem is more natural to understand;I did it with the idea of ascending the subsequence.#include #includestring.h>#i
To find the largest and most ascending sub-sequencesState transition equation: table[i] = max (Table[i]+value[j]) premise value[i]>value[j], constituting increment "Where j from 0 to I-1 Table[i] is the best state of the former I, Value[j] is the value of J#include Hdu-1087-super jumping! jumping! jumping!: One of the simplest entry questions
Topic Meaning:http://acm.hdu.edu.cn/showproblem.php?pid=1087The meaning of this question is to seek the sums of the longest ascending sub-sequences.Topic Analysis:In order to find the longest ascending sub-sequence, not the longest number of saved, but save their and can.AC Code:/** * Longest ascending subsequence problem + saved score */#include HDU1087 Super jumping! jumping!
Title Link: http://acm.hdu.edu.cn/showproblem.php?pid=1087is to seek the longest ascending subsequence, but the result is the and of the sequence, the transfer equation: dp[i] = max (Dp[i], dp[j]+a[i])1#include 2#include 3#include 4#include 5#include 6#include 7#include 8#include 9#include Set>Ten#include One#include A#include - - using namespacestd; the -InlineintMaxintAintb) { - returna > B?a:b; - } + Const intMAXN =1010; - intN; + intA[MAXN]; A intDP[MAXN]; at intans; - intMain () {
Test instructions: Given a sequence of length n, let you ask for one and the largest increment sequence.Analysis: A look, is not much like Lis Ah, this is basically the same, just change it, d (i) indicates the number of the first I, the largest and and is increasing,If D (j) + A[i] > D (i) d (i) = d (j) + A[i] (this is guaranteed and maximum), then how is it incremented? It's simple, like Lis.Plus a[i] > a[j], it's OK.The code is as follows:#include HDU 1087 Super
Water question one, at first glance thought is the longest ascending sub-sequence, actually also almostDp[i] Indicates the maximum score that can be achieved when the point I is reached, note that this is the point, not the first I point #include HDU 1087 Super jumping! jumping! jumping!
Title: http://acm.hdu.edu.cn/showproblem.php?pid=1087Water problem, but I because the initialization of the DP array caused many times WA, the problem is to find the largest and the ascending sequence.Transfer equation:The first thing to do is initialize the DP.if (W[i]>w[j]) dp[i]=dp[j]+w[i];i>j#include #include#includestring.h>#include#include#include#defineINF 0x3f3f3f3fusing namespacestd;intn,w[10100],dp[10100];intMain () {intMaxx; while(SCANF ("%d", n)!=eofn!=0) {memset (DP,0,sizeof(DP));
Game trainer 2 -- house jumping, game trainer house jumping
[Game interface]
Youku video display address:
Http://v.youku.com/v_show/id_XOTE2MjM2MTAw.html
Games:
[Game Introduction]
House jumping, also known as plane jumping and heaven repairing, is a childhood game played by children in the 80 s and 90 s.
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.