当前位置:网站首页>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;
}
边栏推荐
- 一个快速切换一个底层实现的思路分享
- Lightflow completed the compatibility certification with "daocloud Enterprise Cloud native application cloud platform"
- Websocket and socket IO case practice
- power designer - 自定义注释按钮
- 小白懒人专用-win10-win11一键安装版
- [极客大挑战 2019]RCE ME 1
- Summary of some application research cases of UAV Remote Sensing in forest monitoring
- processing 随机生成线动画
- Adobe Acrobat阻止30款安全软件查看PDF文件 或存在安全风险
- Redis learning - 04 persistence
猜你喜欢
![[esp32-c3][rt-thread] run RT-Thread BSP minimum system based on esp32c3](/img/4a/503240b332e3279047c438f1d9845e.png)
[esp32-c3][rt-thread] run RT-Thread BSP minimum system based on esp32c3

不到40行代码手撸一个BlocProvider

Tiger DAO VC产品正式上线,Seektiger生态的有力补充

Echart堆叠柱状图:色块之间添加白色间距效果设置

Mongodb of NoSQL - 03 mongodb CRUD

Word文档导出(使用固定模板)

机器学习笔记 - 时间序列的季节性

老司机总结的12条 SQL 优化方案(非常实用)

倍福Ethercat模块网络诊断和硬件排查的基本方法

国标GB28181协议EasyGBS级联宇视平台,保活消息出现403该如何处理?
随机推荐
LeetCode_栈_中等_150. 逆波兰表达式求值
Photoshop 2022 23.4.1增加了哪些功能?有知道的吗
软件测试测试常见分类有哪些?
KITTI Tracking dataset whose format is letf_top_right_bottom to JDE normalied xc_yc_w_h
QT .pri 的建立与使用
MySQL 自定义函数时:This function has none of DETERMINISTIC, NO SQL 解决方案
自定义封装下拉组件
Adobe Acrobat prevents 30 security software from viewing PDF files or there are security risks
postgis計算角度
快手实时数仓保障体系研发实践
第十章 设置结构化日志记录(二)
BigInt:处理大数字(任意长度的整数)
Splunk iowait 报警的解决
美学心得(第二百三十八集) 罗国正
[BSidesCF 2019]Kookie 1
Redis learning - 05 node JS client operation redis and pipeline pipeline
深入解析 MySQL binlog
数字信号处理——线性相位型(Ⅰ、Ⅲ型)FIR滤波器设计(1)
初识-软件测试
倍福将EtherCAT模块分到多个同步单元运行--Sync Units的使用