#include<bits/stdc++.h>
using namespace std;
int main()
{
long long T,W,i,c=1;
scanf("%lld",&T);
while(T--)
{
scanf("%lld",&W);
if(W%2==1)
printf("Case %lld: Impossible\n",c++);
else
{
for(i=2;;i+=2)
{
if(W%i==0 && W/i%2==1)
{
printf("Case %lld: %lld %lld\n",c++,W/i,i);
break;
}
}
}
}
return 0;
}
Tuesday, July 28, 2015
1116 - Ekka Dokka
Subscribe to:
Post Comments (Atom)
Triathlon
Triathlon - CodeChef # include < bits/stdc++.h > using namespace std ; # define fi first # define se second # define mp ...
-
# include < bits/stdc++.h > using namespace std ; int main ( ) { int T , c = 1 ; double r1 , r2 , h , p ; // ...
-
# include < bits/stdc++.h > using namespace std ; int main ( ) { long long T , S , l , n , c = 1 ; // freopen(&qu...
-
# include < bits/stdc++.h > using namespace std ; int main ( ) { int T , n , p , q , c = 1 , i , w , t , arry [ 50 ] ; ...
No comments:
Post a Comment