#include#include using namespace std;#include const int Max=100010;int main(){ int ans; int n,S,a[Max]; int T; scanf("%d",&T);//还有这句话我没有太明白其意思,The input will finish with the end of file.,我以为要,while(~scanf("%d",&T)),结果错了 while(T--) { int l=0,r=0; int sum=0; scanf("%d%d",&n,&S); for(int i=0; i n) ans = 0; printf("%d\n",ans); } return 0;}