P5733 【深基6.例1】自动修正(C++、python代码)
生活随笔
收集整理的這篇文章主要介紹了
P5733 【深基6.例1】自动修正(C++、python代码)
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
【深基6.例1】自動修正 - 洛谷
C++代碼:
/* P5733 【深基6.例1】自動修正 https://www.luogu.com.cn/problem/P5733 */ #include<bits/stdc++.h> using namespace std; int main() {string s;cin>>s;for(int i=0;i<s.size();i++){if( s[i]>='a' && s[i]<='z' ){s[i]=s[i]-('a'-'A');}}cout<<s;return 0; }python3代碼:
"""P5733 【深基6.例1】自動修正 https://www.luogu.com.cn/problem/P5733"""ans=input()ans=ans.upper()print( ans )?專利相關書籍(一)
https://blog.csdn.net/dllglvzhenfeng/article/details/122793070
專利相關書籍(二)
https://blog.csdn.net/dllglvzhenfeng/article/details/122793269
幾本科普科幻的書籍
https://blog.csdn.net/dllglvzhenfeng/article/details/122793773
簡史系列書籍
https://blog.csdn.net/dllglvzhenfeng/article/details/122794361
基礎省選+NOI-第4部分 動態規劃
https://blog.csdn.net/dllglvzhenfeng/article/details/122842354
幾本人工智能入門書籍
https://blog.csdn.net/dllglvzhenfeng/article/details/122843538
人工智能入門相關書籍
https://blog.csdn.net/dllglvzhenfeng/article/details/122843941
?
總結
以上是生活随笔為你收集整理的P5733 【深基6.例1】自动修正(C++、python代码)的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 电子学会Python(二至五级)
- 下一篇: P5727 【深基5.例3】冰雹猜想(p