当前位置:网站首页>P5706 [deep foundation 2. Example 8] redistributing fat house water -- February 13, 2022

P5706 [deep foundation 2. Example 8] redistributing fat house water -- February 13, 2022

2022-07-06 06:34:00 dllglvzhenfeng

【 Deep base 2. example 8】 Then divide the fat house water - Luogu


C++ Code :

/*
P5706 【 Deep base 2. example 8】 Then divide the fat house water --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 Code :

"""

P5706 【 Deep base 2. example 8】 Then divide the fat house water (python3 Realization )
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 )




Literature retrieval and thesis writing books ( One )
https://blog.csdn.net/dllglvzhenfeng/article/details/122785815

Literature information retrieval and thesis writing books ( Two )
https://blog.csdn.net/dllglvzhenfeng/article/details/122785968

Rationalism : Mathematics photo album series books, etc
https://blog.csdn.net/dllglvzhenfeng/article/details/122788305

NOI Linux2.0 Use a series of videos
https://blog.csdn.net/dllglvzhenfeng/article/details/122784086

Video on cutting edge of science and technology and thesis writing
https://blog.csdn.net/dllglvzhenfeng/article/details/122783994

 

原网站

版权声明
本文为[dllglvzhenfeng]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202132019035981.html