| Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
|---|---|---|---|---|---|---|
| 1 | Python | 244 | 131 | 113 | 12 months ago | |
| 2 | C | 307 | 164 | 143 | 12 months ago |
#include<stdio.h>#defineGLgrid[#defineGIGLi]charGL16777216];// fixme. why char?inti,total;#defineRECURSE(_n)if(GLi+_n]==GI+1)path_count(i+_n,seen+_n);voidpath_count(inti,char*seen){ if(*seen)return;else*seen=1; if(GI==57)total++; else{RECURSE(-64)RECURSE(64)RECURSE(-1)RECURSE(1)}}intmain(){ char*p=&(GL64]); while(scanf("%s",p+=64)==1); while(p+=4096,++i<=4096)if(GI==48)path_count(i,p); printf("%d",total);}