#include<stdio.h>
int main()
{
    //freopen("in","r",stdin);
    int n,a,t,i;
    scanf("%d",&n);getchar();
    while(n--)
    {
        char c,s[35];
        for(int j=1;j<=4;j++){
            for(i=0,t=128,a=0;i<8;i++)
            {   while(scanf("%c",&c)==1)
                    if(c=='0'||c=='1') break;
                if(c=='1') a+=t;
                t=t/2;
            }
            printf("%d",a);
            if(j!=4) printf(".");
        }
        printf("\n");
    }
    return 0;
}
View Code

相关文章:

  • 2022-12-23
  • 2021-12-08
  • 2021-09-05
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2021-12-05
  • 2021-05-21
  • 2021-07-26
  • 2021-11-26
  • 2021-08-09
  • 2022-12-23
相关资源
相似解决方案