5 条题解
- 1
信息
- ID
- 2019
- 时间
- 1000ms
- 内存
- 128MiB
- 难度
- 3
- 标签
- (无)
- 递交数
- 290
- 已通过
- 147
- 上传者
#include<bits/stdc++.h>
using namespace std;
string s;
int main(){
cin>>s;
for(int i=0;i<s.size();i++){
if('a'<=s[i] and s[i]<='z'){
s[i]-=32;
}
}
cout<<s;
return 0;
}
#include<bits/stdc++.h> using namespace std; string s; int main(){ cin>>s; for(int i = 0;i<s.length();i++){ if('a'<=s[i] and s[i]<='z'){ s[i] = s[i]-32; } } cout<<s; return 0; }
#include<bits/stdc++.h> using namespace std; string s; int main(){ cin>>s; for(int i = 0;i<s.length();i++){ if('a'<=s[i] and s[i]<='z'){ s[i] = s[i]-32; } } cout<<s; return 0; }