报数问题(数组解法) 摘要:解题思路:将数组的元素值赋值为0(即没有被淘汰),被淘汰赋值为1.然后while循环一直循环,打印输出了数据。while里面再来个for循环,一直遍历整个数组通过创建三个变量来记录和修改淘汰的数组元素…… 题解列表 2023年10月11日 0 点赞 0 评论 462 浏览 评分:6.0
等差数列前n项和用数组求 摘要:解题思路:数列的概念与数组十分相似,所以可用数组写注意事项:参考代码:#include<stdio.h>int main(){ int n, i; scanf("%d", &n); …… 题解列表 2023年10月11日 0 点赞 0 评论 293 浏览 评分:9.9
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int n,t; int a[100]; while (…… 题解列表 2023年10月11日 0 点赞 0 评论 312 浏览 评分:0.0
自定义函数 摘要:解题思路:注意事项:参考代码:#include <math.h>double mypow(double x, int n);double fact(int n);int main(void) { in…… 题解列表 2023年10月11日 0 点赞 0 评论 281 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 思路奇妙哦!!! (OoO) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int j=0;void change(char *a,int n){ //n为数组的最大坐标 例a[5],…… 题解列表 2023年10月11日 1 点赞 0 评论 1142 浏览 评分:9.9
数组方法(很麻烦)写数列求和题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int sum1=0; int sum2=0; float sum3=0; int a…… 题解列表 2023年10月11日 0 点赞 0 评论 298 浏览 评分:0.0
1480:模拟计算器(易理解) 摘要:解题思路:注意事项:参考代码:#includeint main(){ int a,b; char c; scanf("%d %d %c",&a,&b,&c); if (c=='+') …… 题解列表 2023年10月11日 0 点赞 0 评论 336 浏览 评分:0.0
编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2023年10月11日 0 点赞 0 评论 280 浏览 评分:0.0
动态规划来解 摘要:参考代码:# 从标准输入读取守望者的初始魔法值、与出口的距离、规定时间 m, s, t = map(int, input().split()) # 用于保存每秒的闪烁位移、跑步位移和每秒的最大…… 题解列表 2023年10月11日 0 点赞 0 评论 408 浏览 评分:9.9
第二种简单解 摘要:参考代码:# 从标准输入读取三个整数 m, s, t,分别代表初始能量、目标能量和时间 m, s, t = map(int, input().split()) s1, s2 = 0, 0 # 初…… 题解列表 2023年10月11日 0 点赞 0 评论 469 浏览 评分:9.9