페이지

2711번: 오타맨 고창영

https://www.acmicpc.net/problem/2711


$O(tl)$


#include<cstdio>
int t, r;
char s[81];
int main() {
    scanf("%d", &t);
    while (t--) {
        scanf("%d %s", &r, &s);
        s[r - 1] = 0;
        printf("%s%s\n", s, s + r);
    }
    return 0;
}

댓글 없음 :

댓글 쓰기