警钟敲烂。
飞舞出题人会在每次获得答案后告诉你你的答案是否正确,所以你要把这个数也读了! 正确代码示例如下:
cout<<"! "; for(int i=1;i<=m;i++) cout<<ans[i]<<" "; cout<<endl; // 注意下面 int tmp; cin>>tmp;