mirror of
https://github.com/Kiritow/OJ-Problems-Source.git
synced 2024-03-22 13:11:29 +08:00
19 lines
300 B
C++
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;
|
|
}
|