Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
346 B
0
Indexable
Never
#include <iostream>
#include <string>
using namespace std;

int main()
{
    string str;
    string result;
    int n;
    cin >> n;
    cin >> str;

    str[n - 1] = 0;
    for (int i = 0; i < str.length(); i++)
    {
        if (str[i] != 0)
        {
            result += str[i];
        }
    }
    cout << result;
}