/** * Name: * EID: * E-mail address: * Unique: * Puzzler Name: 3n+1 * Puzzler Number: 100 * Execution Time: * Rank: */ /** * To get credit for a puzzler you MUST post your: * execution time * rank * test suite (as an ATTACHMENT) * to the *** Consensus on Final Results *** thread * on the class discussion board in Blackboard. */ /** * I attest to having written every line of code and take full responsibility * for the origin of all the code I turn in. * * In particular if any of the code was originally written in a previous * semester I will so acknowledge in this document. */ /** * g++ -ansi -pedantic -Wall 3n+1.c++ -o 3n+1.app * 3n+1.app * cat 3n+1.in | 3n+1.app > 3n+1.out */ #include #include using namespace std; int i; /* input: don't change after reading */ int j; /* input: don't change after reading */ int v; /* output */ inline static bool read () { if (!(cin >> i)) return false; cin >> j; return true;} inline static void eval () { /* */ } inline static void print () { cout << i << " " << j << " " << v << endl;} int main () { while (read()) { eval(); print();} return 0;}