Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

python sched

#include <iostream>
using namespace std;

int main() {
	// your code goes here
	int t;
	cin>>t;
	while(t--){
	    long long n;
	    cin>>n;
	    long long a = n & ~(n-1);
	    if(n%1 || n==a) cout<<-1<<endl;
	    else cout<< a/2 <<" "<<n/2<<" "<<(n-a)/2<<endl;
	}
	return 0;
}
 
PREVIOUS NEXT
Tagged: #python #sched
ADD COMMENT
Topic
Name
6+1 =