西工大C语言POJ作业
更新时间:2017/2/3 11:09:00 浏览量:631 手机版
T091、
Houseboat
#include
#define PI 3.1415926
int main()
{ int i,n;
double year,x,y;
scanf("%d",&n);
for(i=0;i
{ scanf("%lf%lf",&x,&y);
year=PI*(x*x+y*y)/100;
printf("%d %dn",i+1,(int)year+1);
}
return 0;
}
T092、
Sticks
#include
#include
#include
int len[64], n, minlen, get;
bool b[64];
int cmp(const void *a, const void *b)
{ return *(int *)a < *(int *)b ? 1 : -1;
}
bool dfs(int nowlen, int nowget, int cnt)
{ if(cnt >= n) return false;
if(get == nowget) return true;
int i;
bool f = false;
if(nowlen == 0) f = true;
最后
以上就是稳重老师最近收集整理的关于西工大c语言noj100作业,西工大C语言POJ作业的全部内容,更多相关西工大c语言noj100作业内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复