#include <iostream> #include <sched.h> using namespace std; int main() { float x; cin>>x; float xiao; xiao=x-int(x); if(xiao<0.5){ x=int(x); }else{ x=int(x)+1; } cout<<x; } // 64 位输出请用 printf("%lld")