展开全部#include int main(void){ int loop,m,n,ri,s[10];double a,b,c,d;scanf("%d",&loop);for(ri=1;ri;ri+){ int up=0,down=0;加两个变量,便于理解 scanf("%lf%lf%lf%lf",&a,&b,&c,&d);double用%lf longfloat if(c>a&c>b...
展开全部#include define n 40/假设不超过40人 int last(int m,int n){ int a[n];int i,count=0,total=0;for(i=0;i;i+)a[i]=1;i=0;while(total!m){ count+a[i];if(count=n){ count=0;a[i]=0;total+;if(total=m)return i;} i+;i...