About Me

About Me : I have been working as a Software Engineer for various international companies for four years.Currently, I am working as a full stack Javascript developer in Petronas(Malaysia).

Skills

Skills • Javascript •Typescript •Python •C •Java •ReactJs • Redux • VueJs • NestJs • React Testing Library • Django• PostgreSQL • MySQL • NodeJs • Git • Docker • Jira • Visual Studio Code • Slack

শনিবার, ১ ফেব্রুয়ারী, ২০১৪

UVA : 575-Skew Binary

link  575-Skew Binary

#include<stdio.h>
#include<math.h>
#include<string.h>
int main()
{
    long int l,i,s,c;
    char a[100];
    while(scanf("%s",a)){
            s=0;
    l=strlen(a);
    for(i=0;i<l;i++){
            c=a[i]-'0';
    s+=c*(pow(2,l-i)-1);
    }
    if(s==0)
    break;
    printf("%ld\n",s);}
    return 0;
    }

৩টি মন্তব্য: