2 条题解

  • 0
    @ 2026-2-1 14:05:29

    有些长的题解。。。

    #include<bits/stdc++.h>
    using namespace std;
    int main()
    {
    	ios::sync_with_stdio(0);
    	cin.tie(0);cout.tie(0);
    	string s;cin>>s;//输入 
    	for(int i=0;i<s.length()-1;i++)cout<<s[i];//前面不用管,照样输出 
    	cout<<'4';//最后一位输出4即可 
    	return 0;
    }
    
    
    • 0
      @ 2026-2-1 10:52:36

      超水的红

      #include<bits/stdc++.h>
      using namespace std;
      const int N=2e5+10;
      char s[N];
      int main()
      {
      	scanf("%s",s+1);//读入 
      	s[strlen(s+1)]='4';//改变 
      	printf("%s\n",s+1);//输出 
      	return 0;//完事 
      }
      
      • 1

      信息

      ID
      8262
      时间
      2000ms
      内存
      1024MiB
      难度
      1
      标签
      递交数
      31
      已通过
      25
      上传者