摘要: /* * p+23*t1 * = e+28*t2 * = i+33*t3 */ #include #define CANDIV(a,b) ((a) % (b) == 0) int main() { int p,e,i,d,v,c; c=1; while(scanf("%d%d%d%d", &p, &e, &i, &d) != EOF) { if(p... 阅读全文
posted @ 2011-01-29 13:11 Faircoala 阅读(144) 评论(0) 推荐(0) 编辑
摘要: #include #define PI 3.1415926 int main() { int i,n,t; float x,y; scanf("%d", &n); for(i=0; i<n; i++) { scanf("%f%f", &x, &y); t = (int)(PI*(x*x + y*y) / 100); t++; printf("Proper... 阅读全文
posted @ 2011-01-29 12:35 Faircoala 阅读(168) 评论(0) 推荐(0) 编辑
摘要: #include int main() { float month,total; int i; total = 0.0; for(i=0; i<12; i++) { scanf("%f", &month); total += month; } total /= 12; printf("$%.2f\n", total); return 0; } 阅读全文
posted @ 2011-01-29 11:41 Faircoala 阅读(108) 评论(0) 推荐(0) 编辑