不用看我的,留个记录给自己印象 摘要:解题思路: 看前面那位,写的非常好,写此题解完全为了做笔记 分两种情况,第一种后面一个数为0,那就确定2位,长度加2,但是此时step要加1,"0_" 第二种是不为0的情况,长度加1…… 题解列表 2022年05月09日 0 点赞 0 评论 590 浏览 评分:9.9
编写题解 1402: 简单的字符串,简单易懂 解题思路:只要搞清楚逻辑就很容易理解!从第一个字符开始,判断后面是否有连续字母跟它相等的,如果有则count++;否则跳出循环,随后再从不相等的字符开始判断注意事项:多个字符串输入的格式,要用到next()参考代码:publicclassMain{publicstaticvoidmain(String 题解列表 2022年05月09日 0 点赞 0 评论 603 浏览 评分:9.9
汽水瓶 (超级简单,直接输出)! 摘要:解题思路:有个规律!直接看程序!注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;int n;int main(){ while(scanf…… 题解列表 2022年05月09日 0 点赞 0 评论 532 浏览 评分:0.0
1670: 拆分位数 摘要:解题思路:注意事项://合理运用%和/参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;lo…… 题解列表 2022年05月09日 0 点赞 0 评论 468 浏览 评分:0.0
1671: 小九九 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a;int main(){ for(int i=1;i<=9;i…… 题解列表 2022年05月09日 0 点赞 0 评论 428 浏览 评分:0.0
1671: 小九九 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;long long a;int main(){ for(int i=1;i<=9;i…… 题解列表 2022年05月09日 0 点赞 0 评论 398 浏览 评分:0.0
C语言训练-求矩阵的两对角线上的元素之和 摘要:解题思路:模拟注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int i[11][11],n;int main(){ cin>>n; for(…… 题解列表 2022年05月09日 0 点赞 0 评论 569 浏览 评分:0.0
自定义函数之字符串连接 题解(超简单)(c++) 摘要:解题思路:就不是直接输出两个字符串嘛!套个字符串。注意事项:无。参考代码:#include<bits/stdc++.h>using namespace std;string a,b;void zh(s…… 题解列表 2022年05月09日 0 点赞 0 评论 609 浏览 评分:0.0
[编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<fstream>#include<algorithm>using namespace std;long long n…… 题解列表 2022年05月09日 0 点赞 0 评论 475 浏览 评分:0.0
二级C语言-计负均正 摘要:解题思路:模拟注意事项:要用double参考代码:#include<bits/stdc++.h>using namespace std;long long a,fs;double zs,zh;int …… 题解列表 2022年05月09日 0 点赞 0 评论 402 浏览 评分:0.0