摘要:        
#include<bits/stdc++.h> #define ll long long using namespace std; int main() { string s; cin>>s; cout<<s<<endl;//先输出原字符串 for(int i=0; i<s.size(); i++)    阅读全文
posted @ 2024-10-31 15:39
行胜于言Ibl
阅读(99)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include<bits/stdc++.h> using namespace std; int main() { string a,b; cin>>a>>b; //利用字符串的比较函数 if(a.compare(b)<=0){ cout<<a<<b; }else{ cout<<b<<a; } re    阅读全文
posted @ 2024-10-31 15:37
行胜于言Ibl
阅读(61)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <bits/stdc++.h> using namespace std; int main(){ string a,b; getline(cin,a); getline(cin,b); //将字符串中所有的字母均转换为小写字母 for(int i=0;i<a.size();i++)    阅读全文
posted @ 2024-10-31 15:27
行胜于言Ibl
阅读(88)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include<bits/stdc++.h> using namespace std; int main(){ string a,b; //字符串可能空格,所以使用扫描一整行的方式 getline(cin,a); getline(cin,b); bool f = 0;//1代表是子串,0代表不是     阅读全文
posted @ 2024-10-31 15:21
行胜于言Ibl
阅读(72)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { string s; cin>>s; //利用双指针的方式,L指向第一个字符,R指向最后一个字符 //f标记,0代表不是回文,1代表室回文 i    阅读全文
posted @ 2024-10-31 15:19
行胜于言Ibl
阅读(66)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <bits/stdc++.h> using namespace std; int main() { string s; cin>>s; cout<<s; //先输出原字符串 s[0]-=32; //首字母变大写 cout<<s; //再输出新的单词 return 0; }    阅读全文
posted @ 2024-10-31 15:17
行胜于言Ibl
阅读(67)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { string s1,s2; getline(cin,s1); getline(cin,s2); //准备两个字符串,把原本字符串空格去掉后存    阅读全文
posted @ 2024-10-31 15:15
行胜于言Ibl
阅读(75)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include<bits/stdc++.h> using namespace std; int main() { string s; getline(cin,s); for(int i=0;i<s.size();i++){ //检查到“,”就结束遍历 if(int(s[i])==','){ bre    阅读全文
posted @ 2024-10-31 15:14
行胜于言Ibl
阅读(60)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <bits/stdc++.h> #define ll long long using namespace std; int main() { int n; cin>>n; int maxn=-1;//记录最大的分数 string ans; //记录分数最高学生姓名 while(n-    阅读全文
posted @ 2024-10-31 15:13
行胜于言Ibl
阅读(43)
评论(0)
推荐(0)
        
            
        
        
摘要:        
#include <bits/stdc++.h> using namespace std; int main() { string s; getline(cin,s); cout<<s; char a; a=s[0]; //把第一个字符先存起来 s[0]=s[s.length()-1]; //把第一    阅读全文
posted @ 2024-10-31 15:12
行胜于言Ibl
阅读(78)
评论(0)
推荐(0)
        
 
                    
                     
                    
                 
                    
                
 
         浙公网安备 33010602011771号
浙公网安备 33010602011771号