5 条题解

  • 0
    @ 2024-3-17 14:39:40
    #include<bits/stdc++.h>
    using namespace std;
    string str;
    int main()
    {
    	ios::sync_with_stdio(false);
    	cin.tie(0);
    	cout.tie(0);
    	cin>>str;
    	int len=str.size();
    	for(int i=0;i<len-1;i++)
    	{
    		cout<<(char)(str[i]+str[i+1]);
    	}
    	cout<<(char)(str[len-1]+str[0]);
    	return 0;
    }
    
    
    

    信息

    ID
    1132
    时间
    1000ms
    内存
    128MiB
    难度
    3
    标签
    递交数
    168
    已通过
    95
    上传者