一道ACM题,为什么WA了,

一道ACM题,为什么WA了,

题目
一道ACM题,为什么WA了,
Nowadays,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 “start” or “end”.The player starts from start-point and must jumps into end-point finally.In the course of jumping,the player will visit the chessmen in the path,but everyone must jumps from one chessman to another absolutely bigger (you can assume start-point is a minimum and end-point is a maximum.).And all players cannot go backwards.One jumping can go from a chessman to next,also can go across many chessmen,and even you can straightly get to end-point from start-point.Of course you get zero point in this situation.A player is a winner if and only if he can get a bigger score according to his jumping solution.Note that your s
答案
#include using namespace std;typedef struct{long int max;long int t;}node;int main(){long int n,i,j;while(cin >> n&&n){node a[1010];a[0].max =0;a[0].t=0;for(i=1;i> a[i].t;a[i].max = a[i].t;for(j=i-1;j...
举一反三
已知函数f(x)=x,g(x)=alnx,a∈R.若曲线y=f(x)与曲线y=g(x)相交,且在交点处有相同的切线,求a的值和该切线方程.
我想写一篇关于奥巴马的演讲的文章,写哪一篇好呢?为什么好
奥巴马演讲不用看稿子.为什么中国领导演讲要看?
想找英语初三上学期的首字母填空练习……
英语翻译
最新试题
热门考点

超级试练试题库

© 2017-2019 超级试练试题库,All Rights Reserved.