Advertisement
Guest User

Untitled

a guest
Oct 25th, 2016
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.22 KB | None | 0 0
  1. #include <cstdio>
  2. #include <cstring>
  3. int main(){
  4. char tab[3];
  5. long long wynik=0, m=29;
  6. scanf("%c", &tab);
  7. int dlugosc;
  8. for(int i=0; i<3; i++){
  9. wynik=wynik+(tab[i]*m);
  10. m=m*29;
  11. }
  12. printf("%lld", wynik);
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement