2 solutions

  • 0
    @ 2024-3-25 11:39:29

    #include #include using namespace std; int main(){ int n; char s[60]; scanf("%d %s",&n,s); for(int i=0 ;s[i];i++) putchar((s[i]-'a'+n) % 26 + 'a'); return 0; }

    • -1
      @ 2024-3-25 11:34:28

      #include #include using namespace std; int main(){ int n; char s[60]; scanf("%d %s",&n,s); for(int i=0 ;s[i];i++) putchar((s[i]-'a'+n) % 26 + 'a'); return 0; }

      • 1

      Information

      ID
      870
      Time
      1000ms
      Memory
      512MiB
      Difficulty
      1
      Tags
      # Submissions
      63
      Accepted
      37
      Uploaded By