题目链接:https://codeforces.com/contest/23/problem/B
这个题的构造可真是太妙了 orz
#include <iostream>
using namespace std;
int main()
{
int T,n;
scanf("%d",&T);
while(T--)
{
scanf("%d",&n);
printf("%d\n",n>2?n-2:0);
}
return 0;
}