Search
 
SCRIPT & CODE EXAMPLE
 

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;
}
Comment

PREVIOUS NEXT
Code Example
Python :: make guessing game by python 
Python :: printing with format 
Python :: python code to calculate encryption time 
Python :: Python Switch case statement Using classes 
Python :: how to bubble sort a 2d array in python 
Python :: python convert integer to signed base 2 complement 
Python :: discord.py 8ball 
Python :: how to get the user argent in django 
Python :: one line try except python 
Python :: if a or b in python 
Python :: lowering the time.countdown python 
Python :: rrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrooom 
Python :: make row readonly tablewidget pyqt 
Python :: Use in in django while preserving order 
Python :: arcpy select visible raster 
Python :: 12 hour clock to 24 hour clock in python 
Python :: compter des valeur consecutives en python 
Shell :: remove nginx from ubuntu 
Shell :: git store credential 
Shell :: set default branch to main on git init 
Shell :: how to start nginx in linux 
Shell :: git save password global 
Shell :: docker rm all containers 
Shell :: remove remote origin github 
Shell :: dns flush command 
Shell :: enabling ufw 
Shell :: find the parent branch of a git branch 
Shell :: Please install all available updates for your release before upgrading. 
Shell :: obs uninstall ubuntu 
Shell :: dos2unix recursive 
ADD CONTENT
Topic
Content
Source link
Name
7+9 =