#include <iostream>
#include <string>
using namespace std;
int main()
{
string S = 0;
int T,R;
cin >> S >> R;
for(int i = 0; i < T; i++)
{
for(int k = 0; k < S.length(); k++)
{
for(int j = 0; j < R; j++)
{
cout << S[k];
}
}
cout << endl;
}
return 0;
}
Run Code Online (Sandbox Code Playgroud)
错误池语句为:
#include <iostream>
#include <string>
using namespace std;
int main()
{
string S = 0;
int T,R;
cin >> S >> R;
for(int i = 0; i < T; i++)
{
for(int k = 0; k < S.length(); k++)
{
for(int j = 0; j < R; j++)
{
cout << S[k];
}
}
cout << endl;
}
return 0;
}
Run Code Online (Sandbox Code Playgroud)
归档时间: |
|
查看次数: |
217 次 |
最近记录: |