摘要: /*HDU 2149 算是这三个题目中的典范;代码很简单,关键在于思想。。。*/HDU 2149 代码:#include using namespace std; int main() { int m,n; while(cin>>m>>n) { if(n>=m) { cout<<m; for(int i = m+1; i <= n; i++) cout<<" "<<i; cout<<endl; } else { if(m%(n+1)) { cout<<m%(n+1)<< 阅读全文
posted @ 2013-03-10 22:55 简洁是智慧的灵魂 阅读(136) 评论(0) 推荐(0)