摘要: 1.分配任务 (task.pas/c/cpp) 【问题描述】 在社会实践活动中有三项任务分别是:种树、采茶、送水。依据小组人数及男生、女生人数决定小组的接受任务,人数小于10人的小组负责送水(输出water),人数大于等于10人且男生多于女生的小组负责种树(输出tree),人数大于等于10人且男生不 阅读全文
posted @ 2017-07-29 10:54 方尊 阅读(179) 评论(0) 推荐(0)
摘要: #include<iostream>#include<iomanip>#include<cmath>using namespace std;int main(){ freopen("add.in","r",stdin); freopen("add.out","w",stdout); int a,b; 阅读全文
posted @ 2017-07-29 10:10 方尊 阅读(133) 评论(0) 推荐(0)
摘要: #include<iostream>#include<iomanip>#include<cmath>using namespace std;int main(){ int a,b,c; double s,p; cin>>a>>b>>c; p=(a+b+c)/2.0; s=sqrt(p*(p-a)*( 阅读全文
posted @ 2017-07-27 11:03 方尊 阅读(89) 评论(0) 推荐(0)
摘要: 用了一个“假方法“ #include<iostream>using namespace std;int main(){ long long n,y,r,s; cin>>s; r=s/(60*60*24); y=r/30; n=y/12; n=n+1970; y=y%12+1; r=r%30+1; c 阅读全文
posted @ 2017-07-27 08:52 方尊 阅读(101) 评论(0) 推荐(0)