fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3. #define rr long long
  4. int main() {
  5. rr y,i,j=0,sum=0,l=0;
  6. cin>>y;
  7. string u=to_string(y);
  8. j=u.size();
  9. l=pow(2,j);
  10. cout<<l;
  11. // for(int i=0;i<u;i++){
  12. // l=u[i]-48;
  13. // sum=sum+l**j;
  14. // }
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5452KB
stdin
8208
stdout
16