1 条题解

  • 0
    @ 2025-9-9 23:52:04

    Pascal :

    var
      s:string;
      i,b:integer;
    begin
      readln(s);
      i:=0;
      repeat
        inc(i);
        if s[i] in ['A'..'Z'] then
          s[i]:=chr(ord(s[i])+ord('a')-ord('A'))
          else if s[i] in ['a'..'z'] then
            s[i]:=chr(ord('A')+ord(s[i])-ord('a'));
          
      until s[i]='?';
      for i:=1 to length(s)-1 do
        write(s[i])
    end.
    
    • 1

    信息

    ID
    1284
    时间
    1000ms
    内存
    128MiB
    难度
    (无)
    标签
    递交数
    0
    已通过
    0
    上传者