]]>pku1005http://www.shnenglu.com/zzfmars/archive/2010/08/10/122904.htmlKevin_ZhangKevin_ZhangTue, 10 Aug 2010 02:49:00 GMThttp://www.shnenglu.com/zzfmars/archive/2010/08/10/122904.htmlhttp://www.shnenglu.com/zzfmars/comments/122904.htmlhttp://www.shnenglu.com/zzfmars/archive/2010/08/10/122904.html#Feedback0http://www.shnenglu.com/zzfmars/comments/commentRss/122904.htmlhttp://www.shnenglu.com/zzfmars/services/trackbacks/122904.htmlhttp://acm.pku.edu.cn/JudgeOnline/problem?id=1005 綆楁硶鎻忚堪錛?br>1錛夎緭鍏; 2錛塳=1錛?br>3錛夎緭鍏,y; 4)z=(int)(pai*r^2/100+1);杈撳嚭緇撴灉 5)k++;if(k<=N)goto 3); 6)杈撳嚭錛欵ND OF OUTPUT錛?br>7)stop;
#include"iostream" #include"stdio.h" #define pai 3.141592653 usingnamespace std; int main() { int N,Z; float x,y; scanf("%d",&N); for(int k=1;k<=N;k++) { scanf("%f%f",&x,&y); Z=(int)(pai*(x*x+y*y)/100+1); printf("Property %d: This property will begin eroding in year %d.\n",k,Z); } printf("END OF OUTPUT.\n"); return0; }