3 条题解

  • 0
    @ 2025-10-13 9:48:16

    Python:

    s = input().strip()
    result = ''.join(chr(ord(c) + 1) for c in s)
    print(result)
    
    • 0
      @ 2024-9-30 21:35:31
      #include<iostream>
      using namespace std;
      
      char he[] = {"hello world"};
      int i;
      
      int main()
      {
          while(he[i] != 0)
          {
              he[i] += 1;
              cout << he[i];
              i++;       
          }
      
          return 0;
      }
      
      • 0
        @ 2024-7-25 12:29:58

        参考答案:

        #include<iostream>
        #include<cstring>
        using namespace std;
        
        char a[12];
        int main()
        {
            int i = 0;
            while (scanf("%c", &a[i]) != -1) ++i;
        
            for (int j = 0; j < i; ++j) printf("%c", a[j] + 1);
          
            return 0;
        }
        
        
        
        
        • 1

        信息

        ID
        20
        时间
        1000ms
        内存
        256MiB
        难度
        6
        标签
        递交数
        32
        已通过
        11
        上传者