c++
#include <iostream>
using namespace std;
const int N = 110;
int m;
string s[N];
int main()
{
cin >> m;
for (int i = 0; i < m; i ++ )
{
cin >> s[i];
int cnt = 1, t = i;
while (t >= 0 && cnt <= 4)
cout << cnt ++ << "=" << s[t -- ] << ' ';
cout << endl;
}
return 0;
}
登录后发布评论
暂无评论,来抢沙发