写题解 1121: C语言训练-8除不尽的数 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ for(int a=1;;a++) { if(((a*8+7)*8+1)*8+1==((2*a*17+15)*…… 题解列表 2022年03月09日 0 点赞 0 评论 454 浏览 评分:0.0
1054: 二级C语言-计算素数和 摘要:解题思路:找素数:从2到n / 2,中间的所有数遍历一次,只要有一个能被n整除,n就不是素数,否则是素数。注意事项:要求的是素数和,不是素数的个数噢。参考代码:#include <iostream> …… 题解列表 2022年03月09日 0 点赞 0 评论 888 浏览 评分:9.9
编写题解 1112: C语言考试练习题_一元二次方程 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ double a,b,c,x1,x2; scanf("%lf %lf %lf",…… 题解列表 2022年03月09日 0 点赞 0 评论 469 浏览 评分:0.0
编写题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#include#includeusing namespace std;int main(){ bool t = true; int n; cin>>n…… 题解列表 2022年03月09日 0 点赞 0 评论 345 浏览 评分:0.0
编写题解 1114: C语言考试练习题_排列 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int str[4]; for(int i=0;i<4;i++) { scanf("%d",&str[i]);…… 题解列表 2022年03月09日 0 点赞 0 评论 555 浏览 评分:2.0
The kth great number 摘要:####本题中要求输入一组数据中第k大的数 ####具体代码如下: ```java import java.util.ArrayList; import java.util.Arrays; …… 题解列表 2022年03月09日 0 点赞 0 评论 571 浏览 评分:9.9
1053: 二级C语言-平均值计算 摘要:解题思路:建一个大小为10个int的数组,用for循环存放输入数据以及比较大小。注意事项:我把输入数据当成是有序的了,花了十分钟找bug,也是醉了。参考代码:#include <iostream> …… 题解列表 2022年03月09日 0 点赞 0 评论 2260 浏览 评分:8.7
编写题解 1113: C语言考试练习题_保留字母 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int m,j=0; char str1[81],str2[81]; get…… 题解列表 2022年03月09日 0 点赞 0 评论 373 浏览 评分:0.0
兰顿蚂蚁 C++ 摘要:解题思路:注意事项:参考代码:#include <iostream> #include <map> #include <string> using namespace std; int dy[…… 题解列表 2022年03月09日 0 点赞 0 评论 434 浏览 评分:0.0
做题记录2022.3.9(ac:100%) 摘要:解题思路:两种方向:从a到b的范围内取数,然后分割判断该数是否符合要求,这样会存在一些冗余判断,但实现起来较为简单先生成平方数,然后在所给定的范围内拼接出符合要求的数,完全没有冗余,但考虑情况较多.如…… 题解列表 2022年03月09日 0 点赞 0 评论 551 浏览 评分:0.0