直接使用$long long$就行了: ```cpp //核心代码 long long a; cin>>a; cout<<a; return 0; ``` 它会自动忽略输入的浮点数。 by 2021zjhs005 @ 2023-10-15 09:56:20