编程入门]有规律的数列求和 解题思路:注意事项:参考代码:importjava.util.Scanner;publicclassMain{publicstaticvoidmain(String[]args){Scannersc=newScanner(System.in);intn=sc.nextInt();floatsum=0; 题解列表 2023年10月11日 0 点赞 0 评论 477 浏览 评分:0.0
1480:模拟计算器(易理解) 摘要:解题思路:注意事项:参考代码:#includeint main(){ int a,b; char c; scanf("%d %d %c",&a,&b,&c); if (c=='+') …… 题解列表 2023年10月11日 0 点赞 0 评论 567 浏览 评分:0.0
数组方法(很麻烦)写数列求和题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int sum1=0; int sum2=0; float sum3=0; int a…… 题解列表 2023年10月11日 0 点赞 0 评论 515 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 思路奇妙哦!!! (OoO) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int j=0;void change(char *a,int n){ //n为数组的最大坐标 例a[5],…… 题解列表 2023年10月11日 1 点赞 0 评论 1450 浏览 评分:9.9
自定义函数 摘要:解题思路:注意事项:参考代码:#include <math.h>double mypow(double x, int n);double fact(int n);int main(void) { in…… 题解列表 2023年10月11日 0 点赞 0 评论 482 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int n,t; int a[100]; while (…… 题解列表 2023年10月11日 0 点赞 0 评论 512 浏览 评分:0.0
等差数列前n项和用数组求 摘要:解题思路:数列的概念与数组十分相似,所以可用数组写注意事项:参考代码:#include<stdio.h>int main(){ int n, i; scanf("%d", &n); …… 题解列表 2023年10月11日 0 点赞 0 评论 509 浏览 评分:9.9
报数问题(数组解法) 解题思路:将数组的元素值赋值为0(即没有被淘汰),被淘汰赋值为1.然后while循环一直循环,打印输出了数据。while里面再来个for循环,一直遍历整个数组通过创建三个变量来记录和修改淘汰的数组元素通过if判断来记录并修改intnum,count,num1;//变量1:记录被淘汰数。 题解列表 2023年10月11日 0 点赞 0 评论 756 浏览 评分:6.0
直方图(Java含注释) 摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class Test2909 { public st…… 题解列表 2023年10月11日 0 点赞 0 评论 510 浏览 评分:8.0
STL list实现合并 ,排序;insert实现合并 ```cpp#include#includeusingnamespacestd;structnode{//定义结构体,用来存储数据intid;intscore;};boolcmp(nodea,nodeb)//自定义比较函数,按照学号排序{returna.id 题解列表 2023年10月11日 0 点赞 0 评论 835 浏览 评分:0.0 « 12...1114111511161117111811191120...59165917 »