Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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