题解列表
编程入门]有规律的数列求和
摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {……
1480:模拟计算器(易理解)
摘要:解题思路:注意事项:参考代码:#includeint main(){ int a,b; char c; scanf("%d %d %c",&a,&b,&c); if (c=='+') ……
数组方法(很麻烦)写数列求和题
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int sum1=0; int sum2=0; float sum3=0; int a……
C语言思路简单,易懂!!! 理解万岁 思路奇妙哦!!! (OoO)
摘要:解题思路:注意事项:参考代码:#include <stdio.h>int j=0;void change(char *a,int n){ //n为数组的最大坐标 例a[5],……
C语言思路简单,易懂!!! 理解万岁
摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int n,t; int a[100]; while (……
等差数列前n项和用数组求
摘要:解题思路:数列的概念与数组十分相似,所以可用数组写注意事项:参考代码:#include<stdio.h>int main(){ int n, i; scanf("%d", &n); ……
报数问题(数组解法)
摘要:解题思路:将数组的元素值赋值为0(即没有被淘汰),被淘汰赋值为1.然后while循环一直循环,打印输出了数据。while里面再来个for循环,一直遍历整个数组通过创建三个变量来记录和修改淘汰的数组元素……
直方图(Java含注释)
摘要:解题思路:注意事项:参考代码:import java.util.Arrays;import java.util.Scanner;public class Test2909 { public st……