// BEGIN CUT HERE int main( int argc, char* argv[] ) { { PowerOfThreeEasy theObject; eq(0, theObject.ableToGet(1, 3),"Possible"); } { PowerOfThreeEasy theObject; eq(1, theObject.ableToGet(1, 1),"Impossible"); } { PowerOfThreeEasy theObject; eq(2, theObject.ableToGet(3, 0),"Impossible"); } { PowerOfThreeEasy theObject; eq(3, theObject.ableToGet(1, 9),"Impossible"); } { PowerOfThreeEasy theObject; eq(4, theObject.ableToGet(3, 10),"Possible"); } { PowerOfThreeEasy theObject; eq(5, theObject.ableToGet(1093, 2187),"Possible"); } { PowerOfThreeEasy theObject; eq(6, theObject.ableToGet(0, 0),"Possible"); } return 0; }
int main() { // freopen("input.txt","r",stdin); // freopen("output.txt","w",stdout); PowerOfThreeEasy c; int n= pow(3.0,19); c.ableToGet(1,n); return 0; }
int main() { PowerOfThreeEasy ob; cout << ob.ableToGet(1, 3); }
int main() { PowerOfThreeEasy ob; cout << ob.ableToGet(1029, 729*3); }