1 solutions

  • 0
    @ 2025-11-5 15:18:43

    Pascal :

    var
    s:string;
    a,t,i:integer;
    c:char;
    begin
    readln(a);
    readln(s);
    t:=length(s);
    for i:=1 to a do
    begin
     c:=s[t];
     delete(s,t,1);
     s:=concat(c,s);
    
    end;
    writeln(s);
    end.
    
    • 1

    Information

    ID
    16639
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    (None)
    Tags
    # Submissions
    0
    Accepted
    0
    Uploaded By