알고리즘

[알고리즘] 백준 2711 - 오타맨 고창영

blueberrysoda 2024. 8. 7. 23:55
#include <iostream>
#include <string>
using namespace std;

int main(){
    int T;
    cin >> T;

    while(T--){
        int N;
        string S;
        cin >> N >> S;

        for(int i=0; i<S.length(); i++){
            if(i != N-1){
                cout << S[i];
            }
        }
        cout << "\n";
    }
    
    return 0;
}