荒れ果てたショップ [MISSION LEVEL: C]

 1 #include <bits/stdc++.h>
 2 #define _for(i,a,b) for(int i = (a);i < (b);i ++)
 3 #define pb push_back
 4 using namespace std;
 5 
 6 int main()
 7 {
 8     int N,a,b;
 9     while(cin >> N >> a >> b)
10     {
11         _for(i,a,b+1)
12         {
13             string s;
14             int tmp = i;
15             while(tmp)
16             {
17                 s += tmp % 10 + '0';
18                 tmp /= 10;
19             }
20             int sz = s.size();
21             _for(j,sz,N)
22                 s += '0';
23             reverse(s.begin(),s.end());
24             cout << s;
25             if(i!=b)
26                 cout << endl;
27         }
28     }
29     return 0;
30 }

 

posted @ 2019-01-24 10:28  Asurudo  阅读(311)  评论(0编辑  收藏  举报