编写题解 1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool isprime(int i) { if (i==1||i==0) return fa…… 题解列表 2023年01月15日 0 点赞 0 评论 514 浏览 评分:0.0
动态规划题目 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N = 1e2 + 5;int dp[N][N],a[N][N]…… 题解列表 2023年01月15日 0 点赞 0 评论 675 浏览 评分:9.9
编写题解 2924: 明明的随机数c语言 解题思路:编写删除重复数字的函数+排序的函数注意事项:dele函数中,要有j--!因为第一个移动的数字还没有与a[i]比较,j--之后a[i]可以与第一个移动的数字比较。如果没有j--,只适用于有两个相同的数的情况。加了j--适用于多于2个数相同的情况参考代码:#include//删 题解列表 2023年01月16日 0 点赞 0 评论 650 浏览 评分:9.9
编写删除相同的单词函数+冒泡法排序函数 摘要:解题思路:先删除相同字母,再排序,最后进行输出注意事项:参考代码:#include<stdio.h>#include<string.h>//删除重复的单词int dele(char str[][55…… 题解列表 2023年01月16日 0 点赞 0 评论 607 浏览 评分:0.0
排队买票1月16 ```cpp#include#includeusingnamespacestd;intmain(){intM,N,K;inta[10]={0};intsum=0;cin>>M>>N>>K;for(inti=0;i 题解列表 2023年01月16日 0 点赞 0 评论 514 浏览 评分:9.9 二级C语言-进制转换 解答过程 解题思路:注意事项:参考代码: 题解列表 2023年01月16日 0 点赞 0 评论 550 浏览 评分:9.9 温度转换 C语言解答,简单 解题思路:注意事项:参考代码: 题解列表 2023年01月16日 0 点赞 0 评论 2602 浏览 评分:9.9 链表问题,可自己搭建链表也可直接用stl 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n;cin >> n; list<int>node;…… 题解列表 2023年01月16日 0 点赞 0 评论 483 浏览 评分:0.0 1159: 偶数求和(简洁版本) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n=0,m=0,i; while(scanf("%d%…… 题解列表 2023年01月16日 0 点赞 0 评论 452 浏览 评分:0.0 python版本题解 摘要:解题思路:条件判断注意事项:这里自己写了一个四舍五入,直接用int也一样参考代码:s = int(input())def round(x): x = str(x) if x[x.index…… 题解列表 2023年01月16日 0 点赞 0 评论 821 浏览 评分:8.0 « 12...4308430943104311431243134314...59135914 »
链表问题,可自己搭建链表也可直接用stl 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n;cin >> n; list<int>node;…… 题解列表 2023年01月16日 0 点赞 0 评论 483 浏览 评分:0.0
1159: 偶数求和(简洁版本) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n=0,m=0,i; while(scanf("%d%…… 题解列表 2023年01月16日 0 点赞 0 评论 452 浏览 评分:0.0
python版本题解 摘要:解题思路:条件判断注意事项:这里自己写了一个四舍五入,直接用int也一样参考代码:s = int(input())def round(x): x = str(x) if x[x.index…… 题解列表 2023年01月16日 0 点赞 0 评论 821 浏览 评分:8.0