/*
1.3编程基础之算术表达式与顺序执行 06 甲流疫情死亡率
http://noi.openjudge.cn/ch0103/06/
*/
#include<iostream>
using namespace std;
int main()
{
int a,b;
cin>>a>>b;
double ans;
ans=b*1.0/a*100;
printf("%.3lf%%\n",ans);
return 0;
}
python3代码
a, b = map(int, input().split())
print('%.3f%%' % (b*100/a))
转自
python && C++ NOI编程题解1.3
https://blog.csdn.net/yigezzchengxuyuan/article/details/86616733