My issue
whats wrong in my code
My code
#include <bits/stdc++.h>
using namespace std;
int main() {
// your code goes here
int T;
std::cin >> T;
int N,max,min;
for(int i=1;i<=T;i++){
std::cin >> N;
if(N%2!=0){
max=(N/2)+1;
min=(N/2);
}else{
max=(N/2);
min=(N/2)-1;
}
std::cout << max<< " "<<min << std::endl;
}
}
Problem Link: The Man Code Practice Coding Problem