Untitled

mail@pastecode.io avatar
unknown
plain_text
a year ago
323 B
0
Indexable
Never
#include <iostream>
#include <vector>
#include <string>
using namespace std;
string func(string a,int k) {
	string h = "";
	for (int i = 0; i < k-1; i++){
		h += a[i];
	}
	for (int i = k;i<a.size(); i++) {
		h += a[i];
	}
	return h;
}
int main(){
	string a; int b;
	cin >> b >> a;
	cout << func(a, b);
}