Created
December 10, 2014 18:22
-
-
Save TheDerkus/b9c5d68e374bc894833a to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
m,s,c,p; | |
main(v){ | |
for(;~(v=getchar());p=v) | |
if(m) | |
m=v^47||p^42; | |
else if(s) | |
s=v!=10; | |
else if(p^47) | |
c+=v^9&&v^10; | |
else | |
c-=(m=v==42)||(s=v==47); | |
printf("\n%d characters in file, excluding comments and some unnecessary whitespace\n",c); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment