摘要: 1 #includeiostream> 2 using namespace std; 3 class Point { 4 public: 5 Point(int xx=0,int yy=0) { 6 x=xx; 7 y=yy; 8 } 9 /*------------------复制构... 阅读全文
posted @ 2011-04-15 22:49 左手写诗 阅读(183) 评论(0) 推荐(0) 编辑
摘要: 1 #include<iostream> 2 using namespace std; 3 int main() { 4 int n,u,d; 5 while(true){ 6 cin>>n>>u>>d; 7 if(n==0) 8 break; 9 else {10 int tem=0,v=0;11 tem=n-u;12 v=u-d;13 if(tem%v!=0) {14 int a=0;15 a=tem/v;16 cout<<2*(a+1)+1<<endl;17 continue;18 }19 else {20 int 阅读全文
posted @ 2011-04-15 17:24 左手写诗 阅读(152) 评论(0) 推荐(0) 编辑