不用sorted函数两层for 循环处理的 摘要:解题思路:先输入各种要求的值,之后利用冒泡排序得到元素的升序列表注意事项:参考代码:number,shu=map(int,input().split())lit=[]for i in range(nu…… 题解列表 2024年07月01日 0 点赞 1 评论 245 浏览 评分:9.9
题目 1045: [编程入门]自定义函数之整数处理 摘要:解题思路:搞三个功能自定义函数嘛注意事项:参考代码:#include<stdio.h>void qwe1(int a1[],int size);void qwe2(int a2[],int size)…… 题解列表 2024年07月01日 0 点赞 0 评论 279 浏览 评分:0.0
计算每条线段经过的整数点并用map判断 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; typedef pair<int,int> PI; map<PI,int>…… 题解列表 2024年06月30日 15 点赞 0 评论 3224 浏览 评分:7.3
编写题解 2024: 链表删除练习 摘要:删除一位就相当于往后移了一位 void del(node* p,int m) { while (p->next) { if (p->next-…… 题解列表 2024年06月30日 0 点赞 0 评论 613 浏览 评分:10.0
编写题解 2777: 计算2的幂 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int n,sum=1;cin>>n; for…… 题解列表 2024年06月30日 0 点赞 0 评论 431 浏览 评分:9.9
2805: 乘方计算 摘要:解题思路:注意事项:因为是乘,所以“sum=1”,不是“sum=0”参考代码:#include <bits/stdc++.h>using namespace std;int main(){ in…… 题解列表 2024年06月30日 0 点赞 0 评论 204 浏览 评分:0.0
编写题解 2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int a,n,sum=1;cin>>a>>n; …… 题解列表 2024年06月30日 0 点赞 0 评论 353 浏览 评分:9.9
2777:计算2的幂 摘要:解题思路:循环注意事项:变量参考代码:#include <bits/stdc++.h>using namespace std;int main(){ int i,n,sum; sum=1;…… 题解列表 2024年06月30日 0 点赞 0 评论 156 浏览 评分:0.0
2805: 乘方计算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a,n,sum=1; cin>>a>>n…… 题解列表 2024年06月30日 0 点赞 0 评论 151 浏览 评分:0.0
ddddgggggggggggggggggggggggggggcb 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int k,sum1=0 ,sum5=0,sum10=…… 题解列表 2024年06月30日 0 点赞 0 评论 194 浏览 评分:0.0