[算法训练VIP]阶乘 python代码 简单易懂 摘要:解题思路:注意事项:参考代码:import mathsum1 = math.factorial(int(input())) # 求阶乘之和的函数 math.factorialwhile 1: …… 题解列表 2021年04月10日 0 点赞 0 评论 965 浏览 评分:9.9
蓝桥杯2017年第八届真题-拉马车——使用StringBuilder方式 摘要:使用StringBuilder操作字符串模拟出牌,并判断当前出牌是否可以从牌堆中拿牌,当有一方手牌为空结束游戏 ```java import java.util.Scanner; public…… 题解列表 2021年04月10日 0 点赞 0 评论 629 浏览 评分:9.9
结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:count = int(input())lst = [] #存放每个人的分数平均值str = [] #存放输入学生信息sum1=0sum2=0sum3=0for …… 题解列表 2021年04月10日 0 点赞 1 评论 559 浏览 评分:9.9
C++最小生成树+并查集 摘要:解题思路:虚拟点0点,当码头只有一个时最后减掉,其他就是最小生成树和并查集注意事项:可以挣钱的路不管树通不通都加参考代码:#include<iostream> #include<vector> #…… 题解列表 2021年04月10日 0 点赞 0 评论 582 浏览 评分:0.0
日期的计算 摘要:解题思路:利用类进行处理;注意事项:平年、闰年的判断。参考代码:#include<iostream> class Time { private:int year, month, day; p…… 题解列表 2021年04月10日 0 点赞 0 评论 167 浏览 评分:0.0
字符串对比。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>int main(){ c…… 题解列表 2021年04月10日 0 点赞 0 评论 227 浏览 评分:0.0
,,,,,。。。。。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>void fun(int a,int b){ int i,j,…… 题解列表 2021年04月10日 0 点赞 0 评论 351 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:调用三个字符数组str1,str2,str3,字符数组str1是用来输入字符串,字符数组str3是放入元音字母(有顺序排列),字符数组str2是用来存放str1中包含元音字母。第一个循环是为…… 题解列表 2021年04月10日 0 点赞 0 评论 738 浏览 评分:9.9
注意使用while循环语句 摘要:#include<stdio.h> #include<math.h> int main() { int n; while(~scanf("%d",&n)){ if(n!=0){ …… 题解列表 2021年04月10日 0 点赞 0 评论 493 浏览 评分:8.0
干净的解法 摘要:解题思路:注意事项:参考代码:int_count = 0str_count = 0a = input(str())for i in a: if i.isdigit(): int_count +…… 题解列表 2021年04月10日 0 点赞 0 评论 255 浏览 评分:0.0