2812: 球弹跳高度的计算 摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int main() { double meter,sum=0,s=0;…… 题解列表 2024年01月02日 0 点赞 0 评论 224 浏览 评分:0.0
题解 1025: [编程入门]数组插入处理 C语言 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>int main() { int arr[10]; // 10个元…… 题解列表 2024年01月02日 0 点赞 0 评论 187 浏览 评分:0.0
题解 1138: C语言训练-求矩阵的两对角线上的元素之和 C语言 摘要:解题思路:注意事项:次对角线的特点是,行号与列号之和等于数组边长减一,而不是j+i=2参考代码:#include <stdio.h>int main() { int arrsize, i, j, co…… 题解列表 2024年01月02日 0 点赞 0 评论 167 浏览 评分:0.0
C语言训练-亲密数(对因子的累加,可以用sqrt来优化) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> void m(int a) { int b=1; for(int i=2;…… 题解列表 2024年01月03日 0 点赞 0 评论 202 浏览 评分:0.0
列出最简真分数序列*(做这题给我一种可以用埃氏筛法的感觉,也确实可以用) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> #include<math.h> int main() { int a[40]={1,0}; int b=0…… 题解列表 2024年01月03日 0 点赞 0 评论 160 浏览 评分:0.0
自定义函数描述之整数处理(c语言)(易懂版) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void input(int *p){ int i; for(i=0;i<10;i++) scanf("%d",p++…… 题解列表 2024年01月03日 0 点赞 0 评论 141 浏览 评分:0.0
题解 1022: [编程入门]筛选N以内的素数 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>int main(){ int i, j, scanfnum, i…… 题解列表 2024年01月04日 0 点赞 0 评论 136 浏览 评分:0.0
题解 1004: [递归]母牛的故事 摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include <stdio.h>int year(int n) { if (n <= 4) { ret…… 题解列表 2024年01月04日 0 点赞 0 评论 131 浏览 评分:0.0
自由落体问题 摘要:解题思路: 在一次落地之后,下一次落地前弹起和下落的距离和为上一次下落的距离 参考代码: ```c #include int main() { int n; scanf("%d",…… 题解列表 2024年01月04日 0 点赞 0 评论 254 浏览 评分:0.0
抓住那头牛(python) 摘要:解题思路:注意事项:参考代码:def catchCow(n, k): if n == k: # 如果农夫和牛的位置相等,那么花费时间为0 return 0 visited …… 题解列表 2024年01月04日 0 点赞 0 评论 214 浏览 评分:0.0