还AC了
#include<bits/stdc++.h> using namespace std; union type{ char c; int x; }a; int main(){ cin>>a.c; cout<<a.x; return 0; }