题目 1151: C语言训练-计算一个整数N的阶乘 摘要:解题思路:循环注意事项:无参考代码:n=int(input())s=1for i in range(1,n+1): s=s*iprint(s)…… 题解列表 2024年03月17日 0 点赞 4 评论 245 浏览 评分:9.9
与指定数字相同的数的个数 摘要:解题思路:注意事项:参考代码:s=0a=list(map(int,input().split()))b=list(map(int,input().split()))for i in b: if …… 题解列表 2024年03月17日 0 点赞 0 评论 301 浏览 评分:0.0
题解 2810: 鸡尾酒疗法 摘要:参考代码:a=int(input())b=[]for i in range(1,a+1): x,y=map(int,input().split()) if i<=1: c=y…… 题解列表 2024年03月17日 0 点赞 1 评论 371 浏览 评分:9.9
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Main {static Scanner sc=new Scanner(System.in);…… 题解列表 2024年03月17日 0 点赞 0 评论 269 浏览 评分:9.9
C++两个函数求阶乘和x的平方,并通过主函数调用; 摘要:解题思路:注意事项:注意返回值为double类型参考代码:#include<iostream>#include<math.h>#include<iomanip>using namespace std;…… 题解列表 2024年03月17日 0 点赞 0 评论 317 浏览 评分:0.0
汽水瓶(python代码) 摘要:解题思路:注意事项:参考代码while True: n=int(input()) if n==0: break c=0 while n>=3: c=…… 题解列表 2024年03月17日 0 点赞 0 评论 249 浏览 评分:0.0
python选择排序 摘要:解题思路:注意事项:参考代码:a=list(map(int,input().split()))a.sort()for i in a: print(i)…… 题解列表 2024年03月17日 0 点赞 0 评论 205 浏览 评分:0.0
数据结构-集合union(基础) 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;typedef struct List{ int L[200]; int leng…… 题解列表 2024年03月17日 1 点赞 0 评论 391 浏览 评分:10.0
继续畅通工程 摘要:解题思路:最小生成树,如果道路是好的就提前连上且不用成本注意事项:参考代码:#include<bits/stdc++.h> using namespace std; int f[1000]; s…… 题解列表 2024年03月17日 0 点赞 0 评论 192 浏览 评分:0.0
1350: 分糖果-c++直接上模板 摘要:解题思路:传递糖果的方式是广搜,先定义一个node结构体struct node { int num;//节点编号 int step;//访问步数 };然后直接上广搜模板void…… 题解列表 2024年03月17日 0 点赞 0 评论 260 浏览 评分:8.0