标签:des style blog http color java os strong
先上题目:
Time Limit: 1000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)
Total Submission(s): 4023 Accepted Submission(s): 2454
1 #include <iostream> 2 #define min(x,y) (x < y ? x : y) 3 using namespace std; 4 5 int main() 6 { 7 int n,m; 8 ios::sync_with_stdio(false); 9 while(cin>>n>>m){ 10 if(n%(m+1)){ 11 if(n<=m){ 12 for(int i=0;n+i<=m;i++){ 13 if(i) cout<<" "; 14 cout<<n+i; 15 } 16 }else{ 17 cout<<n%(m+1); 18 } 19 cout<<endl; 20 }else{ 21 cout<<"none"<<endl; 22 } 23 } 24 return 0; 25 }
HDU - 2149 - Public Sale,布布扣,bubuko.com
标签:des style blog http color java os strong
原文地址:http://www.cnblogs.com/sineatos/p/3888854.html