# include# include # include # include # include using namespace std; struct node { int pos;///初始位置 int num;///跳的次數 int dd;///跳的間隔 int last;///最後位置 }; struct node s[110]; int cmp(node a1,node a2) { if(a1.num!=a2.num) return a1.num>a2.num; else if(a1.last!=a2.last) return a1.last>a2.last; else if(a1.pos!=a2.pos) return a1.pos>a2.pos; else if(a1.dd!=a2.dd) return a1.dd