g1-02841.in
g1-02841.out
定义 C++ 的 float 型变量 N,则语句 cin >> N; cout << int(float(N)) 可以输入正负整数和浮点数,并将其转换为整数后输出。
float
N
cin >> N; cout << int(float(N))