摘要:
#include#define N 1010int min[N];int main() {int t,n,p,ti,first,end,num,i,j,max,k;char s[N];scanf("%d",&t);while(t--) {scanf("%d%d",&n,&p);first=1;ti=... 阅读全文
摘要:
#includeint main() {int n,m,i,t;scanf("%d",&t);while(t--){scanf("%d%d",&n,&m);if(n==2&&m==1) {//特殊情况printf("1\n");continue;}if(m=n-1)m=n-1;printf("%d\... 阅读全文