编写题解 1054: 二级C语言-计算素数和 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;bool isprime(int i) { if (i==1||i==0) return fa…… 题解列表 2023年01月15日 0 点赞 0 评论 396 浏览 评分: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 评论 529 浏览 评分:9.9
编写题解 2924: 明明的随机数c语言 摘要:解题思路:编写删除重复数字的函数+排序的函数注意事项:dele函数中,要有j--!因为第一个移动的数字还没有与a[i]比较,j--之后a[i]可以与第一个移动的数字比较。如果没有j--,只适用于有两个…… 题解列表 2023年01月16日 0 点赞 0 评论 478 浏览 评分:9.9
编写删除相同的单词函数+冒泡法排序函数 摘要:解题思路:先删除相同字母,再排序,最后进行输出注意事项:参考代码:#include<stdio.h>#include<string.h>//删除重复的单词int dele(char str[][55…… 题解列表 2023年01月16日 0 点赞 0 评论 474 浏览 评分:0.0
排队买票1月16 摘要:```cpp #include #include using namespace std; int main() { int M, N, K; int a[10] = { 0 };int…… 题解列表 2023年01月16日 0 点赞 0 评论 387 浏览 评分:9.9
链表问题,可自己搭建链表也可直接用stl 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n;cin >> n; list<int>node;…… 题解列表 2023年01月16日 0 点赞 0 评论 373 浏览 评分:0.0
1159: 偶数求和(简洁版本) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int n=0,m=0,i; while(scanf("%d%…… 题解列表 2023年01月16日 0 点赞 0 评论 313 浏览 评分:0.0
python版本题解 摘要:解题思路:条件判断注意事项:这里自己写了一个四舍五入,直接用int也一样参考代码:s = int(input())def round(x): x = str(x) if x[x.index…… 题解列表 2023年01月16日 0 点赞 0 评论 675 浏览 评分:8.0