摘要: #include using namespace std;int main(){ int n,u,d,sum; while(cin>>n>>u>>d&&n){ int k = (n-u)/(u-d); if( (n-u)%(u-d) ) ... 阅读全文
posted @ 2016-04-07 16:23 Lawliet__zmz 阅读(139) 评论(0) 推荐(0) 编辑
摘要: #include using namespace std;int main(){ int n,sum,m,j,k; cin>>m; while(m--){ cin>>n; sum = 0; for(j=0;j>k; ... 阅读全文
posted @ 2016-04-07 15:37 Lawliet__zmz 阅读(146) 评论(0) 推荐(0) 编辑