[编程入门]自定义函数之字符类型统计 解题思路:因为有四种类型的字符需要统计,所以我们可以建立四个累加器来计算,同时运用for语句扫遍字符串,用if语句判断四种类型(islower(s[i])||isupper(s[i]),isdigit(s[i]),s[i]=="",和else)注意事项:字母有大小写之分, 题解列表 2022年05月08日 0 点赞 0 评论 622 浏览 评分:9.9
c++格子刷油漆 摘要:解题思路:https://www.freesion.com/article/4385447958/参考代码:#include<iostream> using namespace std; int …… 题解列表 2022年05月08日 0 点赞 0 评论 900 浏览 评分:2.0
1159: 偶数求和 简单易懂的优质题解 摘要:解题思路:巧用循环注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n = 0, m = 0 ,g; while(cin …… 题解列表 2022年05月08日 0 点赞 0 评论 558 浏览 评分:0.0
信息学奥赛一本通T1448-电路维修 ```/*本题使用了双端队列进行解决*/#include#definexfirst#defineysecondusingnamespacestd;typedefpairpii;constintdx[4]={-1,1,1,-1};constintdy[4]={-1, 题解列表 2022年05月08日 0 点赞 0 评论 1044 浏览 评分:9.9
字符串拷贝 #include#include#defineMax1000char*Copy(charA[Max],charB[Max],intm,intn){intj=0,q=0;for(j=m-1;j 题解列表 2022年05月08日 0 点赞 0 评论 627 浏览 评分:0.0
编写题解 2024: 链表删除练习--STL 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<deque> using namespace std; void print_Deque(deque<int…… 题解列表 2022年05月08日 0 点赞 0 评论 474 浏览 评分:0.0
我的笨蛋方法 摘要:```c #include #define Max 1000 int main(){ int n,num[Max]; scanf("%d",&n); int i; for(i=…… 题解列表 2022年05月08日 0 点赞 0 评论 524 浏览 评分:0.0
数学问题,百分之91! 摘要:import java.io.*; public class Main { static BufferedReader bf=new BufferedReader(new InputStre…… 题解列表 2022年05月08日 0 点赞 0 评论 808 浏览 评分:9.9
编写题解 1585: 蓝桥杯算法训练VIP-链表数据求和操作 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { int a[10],b[10]; in…… 题解列表 2022年05月08日 0 点赞 0 评论 523 浏览 评分:0.0
编写题解 1052: [编程入门]链表合并---STL(map)容器求解 摘要:解题思路:map容器,自动排好序。键值对分别存储学号和成绩注意事项:参考代码:#include<iostream> using namespace std; #include<map> void…… 题解列表 2022年05月08日 0 点赞 0 评论 741 浏览 评分:0.0