24 lines
422 B
C++
24 lines
422 B
C++
#include <iostream>
|
|
#include <string>
|
|
|
|
using namespace std;
|
|
|
|
string operator*(const string str, int n) {
|
|
string result;
|
|
for (int i = 0; i < n; ++i)
|
|
result += str;
|
|
return result;
|
|
}
|
|
|
|
string operator*(int n, const string str) {
|
|
string result;
|
|
for (int i = 0; i < n; ++i)
|
|
result += str;
|
|
return result;
|
|
}
|
|
|
|
int main() {
|
|
string meow;
|
|
cin >> meow;
|
|
cout << 3 * meow << endl;
|
|
}
|