摘要: http://poj.org/problem?id=1005View Code #include<stdio.h>int main(){ int n, i ; float x, y ; scanf("%d", &n) ; for(i=1; i<=n; i++) { scanf("%f %f", &x, &y) ; float area = 3.14*(x*x + y*y)/2 ; int year = (int)(area/50) + 1 ; printf("Property %d: This prop 阅读全文
posted @ 2013-04-11 18:12 yelan@yelan 阅读(123) 评论(0) 推荐(0) 编辑
摘要: http://poj.org/problem?id=1003View Code #include<stdio.h>int main(){ float c ; while(scanf("%f", &c),c!=0) { int i = 0; float sum = 0 ; while(sum<c) { i++ ; sum += 1.0/(i+1) ; } printf("%d card(s)\n", i) ; } return 0 ;}已知... 阅读全文
posted @ 2013-04-11 14:38 yelan@yelan 阅读(118) 评论(0) 推荐(0) 编辑