1136: C语言训练-求具有abcd=(ab+cd)2性质的四位数 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string s,s1,s2; for(int i=10…… 题解列表 2021年12月17日 0 点赞 0 评论 262 浏览 评分:0.0
盾神与积木游戏 结构体与优先队列 摘要: #### 利用优先队列的自动排序,将每个人按照需要的积木数量排序,在获取数据时若持有数大于目标数则不将其塞进优先队列里面。 ##### 用while循环判断遍历优先队列里面的最小所需数是否小于总…… 题解列表 2021年12月17日 0 点赞 0 评论 580 浏览 评分:9.9
1022: [编程入门]筛选N以内的素数 摘要:解题思路:素数指在一个大于1的自然数中,除了1和此整数自身外,没法被其他自然数整除的数参考代码:#includeint main(){ int n,flag=1; scanf("%d",&…… 题解列表 2021年12月16日 0 点赞 0 评论 312 浏览 评分:9.9
1009: [编程入门]数字的处理与判断 摘要:参考代码:#include <stdio.h>#include <string.h>int main(){ char str[5]; scanf("%s",str); int len…… 题解列表 2021年12月16日 0 点赞 0 评论 239 浏览 评分:0.0
字符串解题,代码简短简单 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ string str; getline(cin,…… 题解列表 2021年12月16日 0 点赞 0 评论 463 浏览 评分:0.0
简单方法计算最大公约数和最小公倍数 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a=0,b=0,c=0; cin>>a>…… 题解列表 2021年12月16日 0 点赞 0 评论 411 浏览 评分:9.9
不需要数组,简单运算 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int a=0 , n=0 , m=0; flo…… 题解列表 2021年12月16日 0 点赞 0 评论 209 浏览 评分:0.0
一行代码解决,有帮助给个5星 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ for(int i=1;i<=9;i++){ …… 题解列表 2021年12月16日 0 点赞 0 评论 183 浏览 评分:0.0
数据结构-简单选择排序(这道题很简单的了) 摘要:解题思路:注意事项: 输出格式的要求,注意一下就行。参考代码:#include<stdio.h>int main(){ int n,k,temp,i,j; int a[1000];//防止数组越界 ,…… 题解列表 2021年12月16日 0 点赞 0 评论 596 浏览 评分:0.0
1676: 数据结构-链表的基本操作(C语言描述) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<stdlib.h> #include<string.h> //定义结点类型 typedef struct …… 题解列表 2021年12月16日 0 点赞 0 评论 473 浏览 评分:9.9