C++代码:
/*
P5706 【深基2.例8】再分肥宅水--2022.02.13
https://www.luogu.com.cn/problem/P5706
*/
#include <bits/stdc++.h>
#include<stdio.h>
using namespace std;
int main()
{
int n,ans02;
double t,ans01;
cin>>t>>n;
ans01=t/n;
ans02=n*2;
printf("%.3f\n%d",ans01,ans02);
return 0;
}
python3代码:
"""
P5706 【深基2.例8】再分肥宅水(python3实现)
https://www.luogu.com.cn/problem/P5706
"""
t,n= map( str, input().strip().split() )
ans01=float(t)/int(n)
ans02=int(n)*2
print( "%.3f"%ans01 )
print( ans02 )
文献检索与论文写作书籍(一)
https://blog.csdn.net/dllglvzhenfeng/article/details/122785815
文献信息检索与论文写作书籍(二)
https://blog.csdn.net/dllglvzhenfeng/article/details/122785968
理性派:数学写真集系列书籍等
https://blog.csdn.net/dllglvzhenfeng/article/details/122788305
NOI Linux2.0使用系列视频集
https://blog.csdn.net/dllglvzhenfeng/article/details/122784086
科技前沿及论文写作相关视频
https://blog.csdn.net/dllglvzhenfeng/article/details/122783994