辽宁师范大学 • 张大为@https://daweizh.github.io/noip/
#include<iostream> using namespace std; int main(){ int i; short s; cout << sizeof(i)<< " " << sizeof(s) << endl; return 0; }
#include<iostream> using namespace std; int main(){ float f; double d; cout << sizeof(f)<< " " << sizeof(d) << endl; return 0; }
#include<iostream> using namespace std; int main(){ bool b; char c; cout << sizeof(b)<< " " << sizeof(c) << endl; return 0; }
#include<iostream> using namespace std; int main(){ int a = 32768; short b = a; cout << "D C" <<endl; //printf("%d %d\n", a, b); return 0; }
#include<iostream> using namespace std; int main(){ double a = 1.000000001; float b = a; cout << "F E" <<endl; //printf("%.9f %.9f\n", a, b); return 0; }
#include <iostream> using namespace std; int main(){ float a; cin >> a; cout << (int)a << endl; return 0; }
#include<iostream> using namespace std; int main(){ char c; scanf("%c",&c); cout << (int)c << endl; return 0; }
#include<iostream> using namespace std; int main(){ int c; cin >> c; cout << (char)c << endl; return 0; }
#include<iostream> using namespace std; int main(){ int i; cin >> i; bool b = i; int j = b; cout << j << endl; return 0; }
#include<iostream> using namespace std; int main(){ cout << sizeof("Hello, World!") << endl; return 0; }