java 多函数解题 简单易理解 摘要:解题思路:分三个部分1:字典部分 接受 n 用String字符串 选择输出 返回类型为String 类型2:判断部分 判断接受的 n 大小,小于等于20直接调用字典 大于20的做特殊处理返回值为 :向…… 题解列表 2021年11月18日 0 点赞 0 评论 581 浏览 评分:9.9
钟神赛车 c++(记录自己的思路) 摘要:解题思路:田径赛马,先把两者排序,从对方速度小的开始比,遍历自己所有,把可以平的和赢的拿下,剩下就是输的参考代码:#include<iostream> #include<algorithm> us…… 题解列表 2021年11月19日 0 点赞 0 评论 581 浏览 评分:9.9
输出九九乘法表 摘要:```python print(' Nine-by-nine Multiplication Table') print('------------------------------------…… 题解列表 2021年11月19日 1 点赞 0 评论 911 浏览 评分:9.9
蓝桥杯算法提高VIP-Pascal三角(精致递归) 摘要:参考代码:#include<iostream> using namespace std; int dfs(int x,int y){ if(y==1||x==y) return 1; …… 题解列表 2021年11月19日 0 点赞 0 评论 540 浏览 评分:9.9
编写题解 1047: [编程入门]报数问题(python) 摘要:解题思路:注意事项:参考代码:n = int(input())l = [i for i in range(1,n+1)]while True: if len(l) >= 3: l.…… 题解列表 2021年11月19日 0 点赞 0 评论 493 浏览 评分:9.9
IP判断(c++正则表达式解法) 摘要:解题思路:使用正则表达式匹配注意事项:匹配 0到99的正则表达式是:[0-9]?\d(问号是匹配前面的字符零或一次)匹配 100到199的正则表达式是:1\d{2}是以1开头,后边有2个数值的三位数匹…… 题解列表 2021年11月19日 0 点赞 1 评论 1092 浏览 评分:9.9
计算两点间的距离(简洁代码) 摘要:解题思路:就是在一组两点坐标距离的基础上变为多组数据坐标距离。注意事项:while 后面不要加“;”,不然程序输不出结果。参考代码:#include<stdio.h>#include<math.h>i…… 题解列表 2021年11月19日 1 点赞 0 评论 1217 浏览 评分:9.9
最大公约数与最小公倍数 摘要:参考代码:#include<stdio.h>int main(){ int a,b,c,d,i,j; scanf("%d %d",&a,&b); if(a>=b) c=a,a=b,b=c;//题目没有…… 题解列表 2021年11月20日 0 点赞 0 评论 417 浏览 评分:9.9
较为详细的步骤 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int N,z;//N为前多少项double i,m,sum=0,p;//p为分子,m为分母double a[1…… 题解列表 2021年11月20日 0 点赞 0 评论 451 浏览 评分:9.9
1007;分段函数(C语言,自定义函数) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>//分段函数求值int add(int y);int main(){ int x,y; scanf("%d",&x); y=…… 题解列表 2021年11月20日 0 点赞 0 评论 1218 浏览 评分:9.9