OJ-Problems-Source/HDOJ/1265_autoAC.cpp
2016-08-13 17:16:08 +08:00

19 lines
300 B
C++

#include<iostream>
#include<cstdio>
#include<cstring>
#include<cstdlib>
using namespace std;
int main()
{
char s[20];
float d;
long x,n;
scanf("%d",&n);
while(n--){
scanf("%f",&d);
memcpy(&x,&d,4);
printf("%X\n",x);
}
return 0;
}