Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2014
458
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C 0.12 KB | None | 0 0
  1. n,o[100000],s,w[3]={1,2,4},i;main(){while(~(o[n++]=getchar()));n-=2;while(n--){s+=w[n%3]*(o[i++]-48);s=n%3?s:!printf("%d",s);}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement