字符串的输入输出处理(Java语言) 摘要:解题思路:注意事项:nextInt只取到数字,后面还有换行符,需用nextLine获取并自动丢弃,才可继续取下一行。参考代码:import java.io.*; import java.util.*…… 题解列表 2022年03月12日 0 点赞 0 评论 694 浏览 评分:8.0
[递归]母牛的故事 摘要:解题思路:注意事项:参考代码:while True: n = int(input()) a = b= c = 0 sum = d = 1 for i in range(n-1)…… 题解列表 2022年03月12日 0 点赞 0 评论 634 浏览 评分:8.0
快速排序!!!!! 摘要:```cpp #include using namespace std; const int L = 10 + 2; int q[L]; int len; void quick_sort(…… 题解列表 2022年03月13日 0 点赞 0 评论 303 浏览 评分:8.0
蓝桥杯算法提高VIP-勾股数python暴力求解 摘要: for i in range(1,998): for j in range(i+1,998): c = pow((i**2+…… 题解列表 2022年03月14日 0 点赞 0 评论 332 浏览 评分:8.0
2610: 蓝桥杯2021年第十二届省赛真题-杨辉三角形 摘要:解题思路:参考 https://blog.csdn.net/zy98zy998/article/details/122293334注意事项:参考代码:#include<iostream> using…… 题解列表 2022年03月14日 0 点赞 1 评论 3057 浏览 评分:8.0
1121题解python for循环 摘要:解题思路:不停地嵌套就行了注意事项:参考代码:for i in range(10000): if i%8==1: if (i//8)%8==1: if ((i…… 题解列表 2022年03月14日 0 点赞 0 评论 445 浏览 评分:8.0
单词分析(C代码) 摘要: #include #include char str[1010]; //建立count数组统计26个字母出现个数 int count[26]; …… 题解列表 2022年03月14日 0 点赞 0 评论 727 浏览 评分:8.0
一种容易理解的方法 摘要:解题思路:注意事项:参考代码:注意逻辑#include<stdio.h>int main(){ int a,b,c; scanf("%d""%d""%d",&a,&b,&c); if…… 题解列表 2022年03月14日 0 点赞 0 评论 630 浏览 评分:8.0
大家不要以为我在装X,但是真的很简单 摘要:解题思路:直接用 import math 就好了注意事项:无参考代码:import mathprint(math.factorial(1977))…… 题解列表 2022年03月16日 0 点赞 1 评论 326 浏览 评分:8.0
动态规划!!! 摘要:```cpp // f[i][j] = f[i - 1][j] + f[i][j - i] #include using namespace std; const int N = 1…… 题解列表 2022年03月16日 0 点赞 0 评论 441 浏览 评分:8.0