最麻烦也是最容易想到的解法。 摘要:解题思路:应用if语句或者switch语句,将可能的情况一一列出来。注意事项:适用于可能的情况类型较少的!参考代码:#include <stdio.h>#include <stdlib.h>int m…… 题解列表 2022年01月26日 0 点赞 0 评论 342 浏览 评分:0.0
标准写法,自创 摘要:#include<stdio.h> #include<string.h> #include<malloc.h> typedef struct Node{ int c; s…… 题解列表 2022年01月26日 0 点赞 0 评论 400 浏览 评分:0.0
C++繁琐,还是自己完整实现舒服 摘要:#include<stdio.h> #include<string.h> #include<malloc.h> typedef struct Node{ int arr[100000]; …… 题解列表 2022年01月26日 0 点赞 0 评论 409 浏览 评分:0.0
python-排列数 摘要:解题思路:python迭代器itertools中permutations函数的应用。注意事项:permutations返回的结果是一个迭代对象。不要先对迭代对象进行转换,然后再输出,例如下面这样A =…… 题解列表 2022年01月26日 0 点赞 0 评论 774 浏览 评分:0.0
蓝桥杯算法提高VIP-Quadratic Equation 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;#include<cmath>int main(){ double a,b,c,x1,x…… 题解列表 2022年01月26日 0 点赞 0 评论 311 浏览 评分:0.0
[编程基础]输入输出练习之浮点数专题 标题题解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ double a; scanf("%lf",&a); printf("%f\n%0.5lf\n…… 题解列表 2022年01月26日 0 点赞 0 评论 354 浏览 评分:0.0
编程基础]输入输出练习之输出图案 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ char c; scanf("%c",&c); printf(" %c\n",c); …… 题解列表 2022年01月26日 0 点赞 0 评论 380 浏览 评分:0.0
答案错了!!! 摘要:解题思路:两种解法注意事项:参考代码:解法一(正确解法)解法二:正确答案是:18446744073709551615…… 题解列表 2022年01月26日 0 点赞 0 评论 413 浏览 评分:0.0
抄别人的,没读懂题目,收尾交换.中间倒序 摘要:#include <stdio.h> #include <string.h> void reverse(char* s, int L, int R){ if(L >= R) return…… 题解列表 2022年01月26日 0 点赞 0 评论 329 浏览 评分:0.0
较容易理解的解法 摘要:解题思路:总分为45,平均每家15,所以a+b=6,c+d=7;注意事项:参考代码:#include<iostream>using namespace std;int add(int a, int b…… 题解列表 2022年01月27日 0 点赞 0 评论 329 浏览 评分:0.0