台球碰撞 (C语言代码) 摘要:解题思路:新手上路,写成了一坨。欢迎各位大佬指正。注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ double l, w, x,…… 题解列表 2022年07月06日 0 点赞 0 评论 562 浏览 评分:0.0
C语言最简单的逻辑,最易懂的代码实现 摘要:解题思路: 将问题分成两步来看, 第一步:计算从1到当前输入数字的阶乘; 第二步:计算目前求出来的阶乘的和; 接下来实现就好了注意事项: 结果太长,变量类型用long l…… 题解列表 2022年07月06日 0 点赞 0 评论 498 浏览 评分:0.0
穿越雷区 BFS解法 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h> using namespace std; const int N = 101; bool vis[N][N] =…… 题解列表 2022年07月07日 0 点赞 0 评论 440 浏览 评分:0.0
2554———————交点 摘要: a,b = map(float,input().split()) c,d = map(float,input().split()) x = (d-b)/(a-c) …… 题解列表 2022年07月07日 0 点赞 0 评论 581 浏览 评分:0.0
2544——————N以内累加求和 摘要: n = int(input()) #凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数 sum = 0 #初始化为0 for i in range(n+1): #循环 …… 题解列表 2022年07月07日 0 点赞 0 评论 428 浏览 评分:0.0
1053: 二级C语言-平均值计算 摘要:解题思路:sum是计算总和的,aver是平均值,count是大于0的考量。注意事项:参考代码:#include<stdio.h>int main(){ int a[10],sum=0,aver,…… 题解列表 2022年07月07日 0 点赞 0 评论 521 浏览 评分:0.0
2212——————景点游览 摘要: n = int(input()) for i in sorted(list(map(int,input().split())))[::-1]:print(i,end=' ') …… 题解列表 2022年07月07日 0 点赞 0 评论 460 浏览 评分:0.0
题解 1594: 蓝桥杯算法训练VIP-Hanoi问题 汉诺塔 摘要:#include<iostream> #include<cstdio> using namespace std; int n; int count; void Hano(int n, int…… 题解列表 2022年07月07日 0 点赞 0 评论 455 浏览 评分:0.0
2211——————数据交换 摘要: a,b = map(int,input().split()) print(b,a) #凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数凑字数…… 题解列表 2022年07月07日 0 点赞 0 评论 432 浏览 评分:0.0
2114——————阶乘和 摘要: n = int(input()) m = 1 s = 0 for i in range(1,n+1): m = m*i s =…… 题解列表 2022年07月07日 0 点赞 0 评论 512 浏览 评分:0.0