Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <cstdio>
- #include <cstring>
- int main(){
- char tab[3];
- long long wynik=0, m=29;
- scanf("%c", &tab);
- int dlugosc;
- for(int i=0; i<3; i++){
- wynik=wynik+(tab[i]*m);
- m=m*29;
- }
- printf("%lld", wynik);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement