有趣的跳跃(作个循环比较差值变化,别忘了是绝对值) 摘要:解题思路:他这个题目不得不说读不大懂,不过这代码思路可以通过,就说明他这是输入的数,按顺序的差值逐渐变小注意事项:参考代码:#include<stdio.h> #include<string.h> …… 题解列表 2023年10月11日 0 点赞 0 评论 521 浏览 评分:0.0
第二种简单解 摘要:参考代码:# 从标准输入读取三个整数 m, s, t,分别代表初始能量、目标能量和时间 m, s, t = map(int, input().split()) s1, s2 = 0, 0 # 初…… 题解列表 2023年10月11日 0 点赞 0 评论 586 浏览 评分:9.9
动态规划来解 摘要:参考代码:# 从标准输入读取守望者的初始魔法值、与出口的距离、规定时间 m, s, t = map(int, input().split()) # 用于保存每秒的闪烁位移、跑步位移和每秒的最大…… 题解列表 2023年10月11日 0 点赞 0 评论 477 浏览 评分:9.9
编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main { public static void main(String[] args) {…… 题解列表 2023年10月11日 0 点赞 0 评论 343 浏览 评分:0.0
1480:模拟计算器(易理解) 摘要:解题思路:注意事项:参考代码:#includeint main(){ int a,b; char c; scanf("%d %d %c",&a,&b,&c); if (c=='+') …… 题解列表 2023年10月11日 0 点赞 0 评论 439 浏览 评分:0.0
数组方法(很麻烦)写数列求和题 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int sum1=0; int sum2=0; float sum3=0; int a…… 题解列表 2023年10月11日 0 点赞 0 评论 363 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 思路奇妙哦!!! (OoO) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int j=0;void change(char *a,int n){ //n为数组的最大坐标 例a[5],…… 题解列表 2023年10月11日 1 点赞 0 评论 1245 浏览 评分:9.9
自定义函数 摘要:解题思路:注意事项:参考代码:#include <math.h>double mypow(double x, int n);double fact(int n);int main(void) { in…… 题解列表 2023年10月11日 0 点赞 0 评论 351 浏览 评分:0.0
C语言思路简单,易懂!!! 理解万岁 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main (){ int n,t; int a[100]; while (…… 题解列表 2023年10月11日 0 点赞 0 评论 376 浏览 评分:0.0
等差数列前n项和用数组求 摘要:解题思路:数列的概念与数组十分相似,所以可用数组写注意事项:参考代码:#include<stdio.h>int main(){ int n, i; scanf("%d", &n); …… 题解列表 2023年10月11日 0 点赞 0 评论 374 浏览 评分:9.9