1105数列(函数加while循环) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;//鬼知道这道题是怎么想的,我用pow求k的次方,结果总有一个例题过不去,我真的服了int power(int k…… 题解列表 2024年06月05日 0 点赞 0 评论 395 浏览 评分:9.9
]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:def kaobei(my_str,m,n): a = [] for i in range(m-1,n): print(my_str[i],en…… 题解列表 2024年06月05日 0 点赞 0 评论 229 浏览 评分:9.9
map存储,指针遍历,简洁优雅 摘要:解题思路:map存储字符,循环遍历注意事项: 记得getchar()清空缓冲区参考代码:#include <bits/stdc++.h> #define IOS ios::sync_with_std…… 题解列表 2024年06月07日 0 点赞 0 评论 805 浏览 评分:9.9
1031: [编程入门]自定义函数之字符串反转 摘要:解题思路:注意事项:参考代码:#include<bits/c++.h>using namespace std;int Reverse(char a[],char b[]){ int i=0,n;…… 题解列表 2024年06月08日 1 点赞 0 评论 584 浏览 评分:9.9
1852: 求1+2+3+...+n的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll man(ll a){ ll…… 题解列表 2024年06月08日 0 点赞 0 评论 272 浏览 评分:9.9
1029: [编程入门]自定义函数处理素数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;ll prime(ll x){ f…… 题解列表 2024年06月08日 0 点赞 1 评论 261 浏览 评分:9.9
2847-找第一个只出现一次的字符-数组解法 摘要:注意事项: 找到只出现一次的字符,输出第一次出现的字符。 注意题目条件:用字符型数组储存输入的小写字母,用整形数组储存26个字母的出现次数输出第一次出现的字母 ```cpp #in…… 题解列表 2024年06月08日 0 点赞 0 评论 644 浏览 评分:9.9
此题仅供参考,(也可以抄) 摘要:解题思路:无注意事项:无,就是有点nan.参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int…… 题解列表 2024年06月09日 0 点赞 0 评论 251 浏览 评分:9.9
题解 2877: 同行列对角线的格子 摘要:```cpp #include using namespace std; typedef long long ll; const int N=1e3; ll a[N][N]; int m…… 题解列表 2024年06月09日 0 点赞 0 评论 294 浏览 评分:9.9
3010 奇偶数之和 摘要:解题思路:循环1到n的所有数字, 判断奇偶数,分别求和,最后输出注意事项:sum1 需要使用+= 号 参考代码:#include <bits/stdc++.h>using namespace std…… 题解列表 2024年06月09日 0 点赞 0 评论 393 浏览 评分:9.9