| Name | Language | Tokens Sum | Tokens Part 1 | Tokens Part 2 | Last change | |
|---|---|---|---|---|---|---|
| 1 | Python | 244 | 131 | 113 | 11 months ago | |
| 2 | C | 307 | 164 | 143 | 11 months ago |
#include<stdio.h>#defineGLgrid[#defineGIGLi]charGL4096];// fixme. why char?inti,total;#defineRECURSE(_n)if(GLi+_n]==GI+1)path_count(i+_n);voidpath_count(inti){ 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); printf("%d",total);}