Skip to content

Instantly share code, notes, and snippets.

@phimuemue
Created March 9, 2014 10:08
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save phimuemue/9445548 to your computer and use it in GitHub Desktop.
Save phimuemue/9445548 to your computer and use it in GitHub Desktop.
volatile char _A[19] = {0};
#define _Y 10
int _D=0,_O=0,_S=0,_M[_Y],_C[_Y],_L;
#define _ _C[_D]
#define times [_A]=1;_D++;_S=0;for(_S \
=-1;_A[_S]==0;++_S){ _M \
[_D]=_S+1;}_A[_S]=0;for \
(_C[_D]=0;_O=_D,(_L=!!( \
_C[_O]<_M[_O] )),_C[_O] \
==_M[_O]?_D--: 1,_O=_D, \
_L;_=_C[_O]++)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment