You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

25 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;
}