http://sdnuacm.sinaapp.com/problem.php?id=1004
#include<iostream>
using namespace std;int main()
{
double x;int y;
cin>>x;
if( x > 0.0 )
y= (int)( x + 0.5 );
else
y= (int)( x - 0.5 );
cout<<y<<endl;
return 0;
}
http://sdnuacm.sinaapp.com/problem.php?id=1004
#include<iostream>
using namespace std;