2 solutions

  • 1
    @ 2026-6-13 16:05:44
    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	string s;
        while(cin>>s){
            int ans=0;
            for(int j=0;j<s.size();j++){
                ans=ans*10+(s[j]-'0');
            }
            cout<<char('a'+(ans-1));
            
        }
    	return 0;
    }
    
    • 1
      @ 2025-8-20 14:52:17
      #include<bits/stdc++.h>
      using namespace std;
      int arr[30];
      char s[30];
      int main(){
      	for(int i=1;i<=26;i++){
      		cin>>arr[i];
      		s[i]=char(arr[i]+'a'-1);
      	}
      	for(int i=1;i<=26;i++){
      		cout<<s[i];
      	}
      	return 0;
      }
      
      
      • 1

      Information

      ID
      2392
      Time
      1000ms
      Memory
      256MiB
      Difficulty
      1
      Tags
      (None)
      # Submissions
      38
      Accepted
      19
      Uploaded By