#include<iostream> using namespace std; int main(){ int t; cin>>t; while(t--){ int n; cin>>n; cout<<(n%2 ? n/2 : n/2-1)<<endl; } }
使用您的 Hydro 通用账户