干净的解法 摘要:解题思路:python中有转换大小写的函数:upper()----所有字母大写;lower()----所有字母小写 注意事项:参考代码:st=input() …… 题解列表 2021年04月10日 0 点赞 0 评论 1033 浏览 评分:0.0
干净的解法 摘要:解题思路:注意事项:参考代码:int_count = 0str_count = 0a = input(str())for i in a: if i.isdigit(): int_count +…… 题解列表 2021年04月10日 0 点赞 0 评论 657 浏览 评分: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 评论 837 浏览 评分:0.0
字符串对比。 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<stdlib.h>#include<math.h>#include<string.h>int main(){ c…… 题解列表 2021年04月10日 0 点赞 0 评论 573 浏览 评分:0.0
日期的计算 摘要:解题思路:利用类进行处理;注意事项:平年、闰年的判断。参考代码:#include<iostream> class Time { private:int year, month, day; p…… 题解列表 2021年04月10日 0 点赞 0 评论 588 浏览 评分:0.0
C++最小生成树+并查集 摘要:解题思路:虚拟点0点,当码头只有一个时最后减掉,其他就是最小生成树和并查集注意事项:可以挣钱的路不管树通不通都加参考代码:#include<iostream> #include<vector> #…… 题解列表 2021年04月10日 0 点赞 0 评论 1120 浏览 评分:0.0
1038: [编程入门]宏定义练习之三角形面积 摘要:解题思路:用bool函数注意事项:一定要写 double area = sqrt(s * (s - a) * (s - b) * (s - c));不然就是求半周长了参考代码:#include<bi…… 题解列表 2021年04月10日 0 点赞 0 评论 729 浏览 评分:0.0
1039: [编程入门]宏定义之闰年判断 摘要:#include<iostream>using namespace std;bool isleap(int n){ if((n % 4 == 0 && n % 100 != 0) || n % 400…… 题解列表 2021年04月10日 0 点赞 0 评论 769 浏览 评分:0.0
龟兔赛跑预测。 摘要:解题思路:注意事项:参考代码:int main(){ int v1,v2,s,t,l; scanf("%d%d%d%d%d",&v1,&v2,&t,&s,&l); int s1=0,…… 题解列表 2021年04月10日 0 点赞 0 评论 852 浏览 评分:0.0
1630: 蓝桥杯算法训练VIP-摆动序列(Python3)DFS+打表 摘要:解题思路: DFS注意事项: Python用DFS在数据量大的时候会超时(6-7s),所以打表更稳一些。参考代码:def test(num, index): global tem…… 题解列表 2021年04月10日 0 点赞 0 评论 1194 浏览 评分:0.0