摘要: #include<iostream>using namespace std;int main(int argc, char* argv[]){ int p,e,i,d; int index=0; while(cin>>p>>e>>i>>d) { if(p==-1) break; int n=(5544*p+14421*e+1288*i-d)%(21252); if(n<=0) n+=21252; cout<<"Case "<<++index<<": the nex 阅读全文
posted @ 2011-08-05 22:08 IT屁民 阅读(159) 评论(0) 推荐(0) 编辑
摘要: #include <stdio.h>#define PI 3.1415926int main(){ int n, i = 0, year; double x, y, area; scanf("%d", &n); while (i < n) { scanf("%lf %lf", &x, &y); area = 0.5 * PI * (x*x+y*y); year = area/50; printf("Property %d: This ... 阅读全文
posted @ 2011-08-05 20:45 IT屁民 阅读(151) 评论(0) 推荐(0) 编辑