6N plus minus one by smkt

#include<iostream>
using namespace std;main(){int n,w,z;char u;while(cin>>n)w=n/6,z=n%6>1,u=43+z*2,cout<<n<<" = 6 * "<<w+z<<" "<<u<<" 1\n";}

Note that non-ascii characters in the above source code will be escaped (such as \x9f).

download

return to the top page