2 条题解

  • 0
    @ 2025-11-22 15:20:53
    #include<bits/stdc++.h>
    using namespace std;
    int main(){ // 
    	string s;
    	cin>>s;
    	for(int i=0;i<s.length();i++){
    		cout<<char(s[i]-'0'+'A');
    	}
    		
    	return 0;
    }
    
    
    • 0
      @ 2024-1-9 15:17:33
      #include<bits/stdc++.h>
      using namespace std;
      int main(){  //C++14级 修改字符串
      	string s;
      	cin>>s;
      	for(int i=0;i<s.length();i++){
      		cout<<char(s[i]-'0'+65);
      	}  
      	return 0;
      }
      
      • 1

      信息

      ID
      1168
      时间
      1000ms
      内存
      256MiB
      难度
      6
      标签
      (无)
      递交数
      19
      已通过
      11
      上传者