1107纪念品分组(sort排序加指针移动) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool cmp(int p1, int p2){ re…… 题解列表 2024年06月07日 0 点赞 0 评论 176 浏览 评分:0.0
1106奖学金(sort排序) 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;//这里注意一下书写的顺序,不然也会出现调用上的错误st…… 题解列表 2024年06月07日 0 点赞 0 评论 378 浏览 评分:0.0
map存储,指针遍历,简洁优雅 摘要:解题思路:map存储字符,循环遍历注意事项: 记得getchar()清空缓冲区参考代码:#include <bits/stdc++.h> #define IOS ios::sync_with_std…… 题解列表 2024年06月07日 0 点赞 0 评论 734 浏览 评分:9.9
编写题解 3018: 末两位数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,c=1;cin>>a;for(int i=1;…… 题解列表 2024年06月06日 0 点赞 0 评论 207 浏览 评分:0.0
]自定义函数之字符串拷贝 摘要:解题思路:注意事项:参考代码:def kaobei(my_str,m,n): a = [] for i in range(m-1,n): print(my_str[i],en…… 题解列表 2024年06月05日 0 点赞 0 评论 160 浏览 评分:9.9
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:def houyi(my_list,m,n): list1=[]+my_list for i in range(n): list1[i] = m…… 题解列表 2024年06月05日 0 点赞 0 评论 141 浏览 评分:0.0
1105数列(函数加while循环) 摘要:解题思路:注意事项:参考代码:#includeusing namespace std;//鬼知道这道题是怎么想的,我用pow求k的次方,结果总有一个例题过不去,我真的服了int power(int k…… 题解列表 2024年06月05日 0 点赞 0 评论 308 浏览 评分:9.9
编写题解 3015: 幂的末尾 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,c=1;cin>>a>>b;for(int i…… 题解列表 2024年06月05日 0 点赞 0 评论 157 浏览 评分:0.0
C语言--小白必懂 摘要:解题思路:后一项是的分子是后一项减去前一项分母的差即可解题注意事项:注意两两关系即可参考代码:#include <stdio.h> int main() { int n, i = 1; …… 题解列表 2024年06月05日 0 点赞 0 评论 168 浏览 评分:0.0
编写题解 3013: 求小数的某一位 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){int a,b,n,m;cin>>a>>b>>n;m=a*1.…… 题解列表 2024年06月05日 0 点赞 0 评论 422 浏览 评分:0.0