输出最后一个答案后不要空行。
int main(){ ios::sync_with_stdio(0);cin.tie(0); int t;cin>>t; while(t--){ mian(); if(t)cout<<endl; } return 0; }