- 锁妖塔
- 2009-07-29 22:45:55 @
include
include
using namespace std;
struct Speed {
int num;
int maxspeed,minspeed;
};
int n,v,k;
Speed a[1000];
void printwrong()
{
coutv>>k;
for(int i=2;i>a[i].num;
}
void function()
{
a[1].maxspeed=a[1].minspeed=v;
for(int i=2;ia.minspeed) a[i].minspeed=a[i].num;
else a[i].minspeed=a.minspeed;
if (a.maxspeed>a[i].num+k+1) printwrong();
else if (a.maxspeed+1=2;i--) {
if (v+1>=a[i].minspeed&&v+1=a[i].minspeed&&v=a[i].minspeed&&v-1
2 条评论
-
比特 LV 3 @ 2009-07-30 20:08:27
return 用得不对
-
2009-07-29 23:32:29@
寫的巨WS
- 1