1039: [编程入门]宏定义之闰年判断 摘要:#include<iostream>using namespace std;bool isleap(int n){ if((n % 4 == 0 && n % 100 != 0) || n % 400…… 题解列表 2021年04月10日 0 点赞 0 评论 272 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:用bool函数注意事项:一定要写 double area = sqrt(s * (s - a) * (s - b) * (s - c));不然就是求半周长了参考代码:#include<bi…… 题解列表 2021年04月10日 0 点赞 0 评论 260 浏览 评分:0.0
[算法训练VIP]阶乘 python代码 简单易懂 摘要:解题思路:注意事项:参考代码:import mathsum1 = math.factorial(int(input())) # 求阶乘之和的函数 math.factorialwhile 1: …… 题解列表 2021年04月10日 0 点赞 0 评论 931 浏览 评分:9.9
蓝桥杯2017年第八届真题-拉马车——使用StringBuilder方式 摘要:使用StringBuilder操作字符串模拟出牌,并判断当前出牌是否可以从牌堆中拿牌,当有一方手牌为空结束游戏 ```java import java.util.Scanner; public…… 题解列表 2021年04月10日 0 点赞 0 评论 557 浏览 评分:9.9
结构体之成绩统计2 摘要:解题思路:注意事项:参考代码:count = int(input())lst = [] #存放每个人的分数平均值str = [] #存放输入学生信息sum1=0sum2=0sum3=0for …… 题解列表 2021年04月10日 0 点赞 1 评论 504 浏览 评分:9.9
C++最小生成树+并查集 摘要:解题思路:虚拟点0点,当码头只有一个时最后减掉,其他就是最小生成树和并查集注意事项:可以挣钱的路不管树通不通都加参考代码:#include<iostream> #include<vector> #…… 题解列表 2021年04月10日 0 点赞 0 评论 552 浏览 评分:0.0
日期的计算 摘要:解题思路:利用类进行处理;注意事项:平年、闰年的判断。参考代码:#include<iostream> class Time { private:int year, month, day; p…… 题解列表 2021年04月10日 0 点赞 0 评论 154 浏览 评分:0.0
字符串对比。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>int main(){ c…… 题解列表 2021年04月10日 0 点赞 0 评论 214 浏览 评分: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 评论 292 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:调用三个字符数组str1,str2,str3,字符数组str1是用来输入字符串,字符数组str3是放入元音字母(有顺序排列),字符数组str2是用来存放str1中包含元音字母。第一个循环是为…… 题解列表 2021年04月10日 0 点赞 0 评论 708 浏览 评分:9.9