T473793(题解)
  • 板块学术版
  • 楼主a1Ex999
  • 当前回复2
  • 已保存回复2
  • 发布时间2024/7/9 16:34
  • 上次更新2024/7/9 16:41:34
查看原帖
T473793(题解)
1346074
a1Ex999楼主2024/7/9 16:34
#include<iostream>
#include<iomanip>
#include<cmath>
using namespace std;
long double huangguohaodejiba; 
int main(){
	cin>>huangguohaodejiba;
	while(huangguohaodejiba>1){
		cout<<"一天吃一点"<<" ";
		cout<<fixed<<setprecision(2)<<sqrt(huangguohaodejiba);
		huangguohaodejiba=sqrt(huangguohaodejiba);
		huangguohaodejiba-=1;
		cout<<endl;
	}
	cout<<endl;
	cout<<"废物"<<" ";
	cout<<"鸡排真短";
    return 0;
}
2024/7/9 16:34
加载中...