#include<cstdio>#include<queue>usingnamespacestd;structMice{intweight,order,rank;//重量、参赛顺序、名次}mouse[1000];queue<int>q;intmain(){intnp,ng;scanf("%d %d",&np,&ng);for(inti=0;i<np;i++)scanf("%d",&mouse[i].weight);for(inti=0;i<np;i++){intt;scanf("%d",&t);mouse[...
Mice and Riceis the name of a programming contest in which each programmer must write a piece of code to control the movements of a mouse in a given map. The goal of each mouse is to eat as much rice as possible in order to become a FatMouse. First the playing order is randomly de...