当前位置:网站首页>P5733 [deep foundation 6. example 1] automatic correction
P5733 [deep foundation 6. example 1] automatic correction
2022-06-26 13:02:00 【A program ape who smashes the keyboard】
P5733 【 Deep base 6. example 1】 Auto fix
# 【 Deep base 6. example 1】 Auto fix
## Title Description
As we all know, some office software has the function of automatically converting letters to uppercase . Enter a length no more than 100 A string that does not include spaces . It is required to change all lowercase letters in the string into uppercase letters and output .
## Input format
## Output format
## Examples #1
### The sample input #1
```
Luogu4!
```
### Sample output #1
```
LUOGU4!
```
【AC Code 】
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<iomanip>
#include<iostream>
#include<map>
#include<queue>
#include<string>
#include<vector>
using namespace std;
string s;
signed main()
{
cin>>s;
for(int i=0;i<s.size();i++)
{
if(islower(s[i]))s[i]=(char)(toupper(s[i]));// Convert to uppercase if lowercase
cout<<s[i];
}
return 0;
}
# 【 Deep base 6. example 1】 Auto fix
## Title Description
As we all know, some office software has the function of automatically converting letters to uppercase . Enter a length no more than 100 A string that does not include spaces . It is required to change all lowercase letters in the string into uppercase letters and output .
## Input format
## Output format
## Examples #1
### The sample input #1
```
Luogu4!
```
### Sample output #1
```
LUOGU4!
```
【AC Code 】
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<iomanip>
#include<iostream>
#include<map>
#include<queue>
#include<string>
#include<vector>
using namespace std;
string s;
signed main()
{
cin>>s;
for(int i=0;i<s.size();i++)
{
if(islower(s[i]))s[i]=(char)(toupper(s[i]));// Convert to uppercase if lowercase
cout<<s[i];
}
return 0;
}
# 【 Deep base 6. example 1】 Auto fix
## Title Description
As we all know, some office software has the function of automatically converting letters to uppercase . Enter a length no more than 100 A string that does not include spaces . It is required to change all lowercase letters in the string into uppercase letters and output .
## Input format
## Output format
## Examples #1
### The sample input #1
```
Luogu4!
```
### Sample output #1
```
LUOGU4!
```
【AC Code 】
#include<algorithm>
#include<cmath>
#include<cstdio>
#include<cstring>
#include<iomanip>
#include<iostream>
#include<map>
#include<queue>
#include<string>
#include<vector>
using namespace std;
string s;
signed main()
{
cin>>s;
for(int i=0;i<s.size();i++)
{
if(islower(s[i]))s[i]=(char)(toupper(s[i]));// Convert to uppercase if lowercase
cout<<s[i];
}
return 0;
}
边栏推荐
- Power Designer - Custom Comment button
- EasyGBS如何解决对讲功能使用异常?
- 软件测试 - 概念篇
- 详细讲解C语言10(C语言系列)
- Group counting practice experiment 9 -- using cmstudio to design microprogram instructions based on segment model machine (2)
- Redis learning - 05 node JS client operation redis and pipeline pipeline
- 自动化测试的局限性你知道吗?
- NoSQL mongodb - 02 mongodb server installation, mongodb shell, basic concepts and visualization tools
- 源码学习:AtomicInteger类代码内部逻辑
- 简易数字电路交通灯设计
猜你喜欢
随机推荐
机器学习笔记 - 时间序列的季节性
The El form item contains two inputs. Verify the two inputs
Redis learning - 04 persistence
轻流完成与「DaoCloud Enterprise 云原生应用云平台」兼容性认证
倍福将EtherCAT模块分到多个同步单元运行--Sync Units的使用
【shell】生成指定日期之间的字符串
【网络是怎么连接的】第二章(上): 建立连接,传输数据,断开连接
solo 博客系统的 rss 渲染失败
详细讲解C语言11(C语言系列)
Adobe Acrobat阻止30款安全软件查看PDF文件 或存在安全风险
Word文档导出(使用固定模板)
PostGIS calculation angle
微信小程序测试点总结
Configuring Apache digest authentication
QT .pri 的建立与使用
Goto statement to realize shutdown applet
processsing 函数random
Several methods added to the ES6 array (foreach, filter, some, every. Includes, reduce)
Sharing ideas for a quick switch to an underlying implementation
Less than 40 lines of code to create a blocprovider







![[BSidesCF 2019]Kookie 1](/img/22/585d081668e67b8389a1b90aaebe9d.png)
