アンドロイドの生産工場 [MISSION LEVEL: D]

 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     string s;
 9     while(cin >> s)
10     {
11         _for(i,0,s.size())
12             if(!(i&0x1))
13                 cout << s[i];
14         cout << endl; 
15     } 
16     return 0;
17 }

猜你喜欢

转载自www.cnblogs.com/Asurudo/p/10312947.html