#include<bits/stdc++.h> using namespace std; int main(){ //还是要撸代码的,神。 float a,b,c,d; int tt; cin>>a>>b; b/=10; c=a*b; c = round(c); tt=int(c)%10; if(tt>=5) d=c+(10-tt); else d=c-tt; cout<<d; return 0; }
#include<bits/stdc++.h> using namespace std; double x,z; int s; int main(){ //风雪压我两三年,我直接被风雪压死了 cin>>x>>z; z/=10; s=x*z; s+=5; s/=10; s*=10; cout<<s; return 0; }
注册一个 安阳中心在线题库OJ系统 通用账户,您就可以在我们提供的所有在线评测服务上提交代码、参与讨论。
使用您的 安阳中心在线题库OJ系统 通用账户