信息学奥赛一本通T1311-求逆序对(从52到100的艰苦历程) 摘要:参考代码:使用的是归并排序52分的代码:#include#include#includeusing namespace std;long long merge(vector int i = st…… 题解列表 2023年07月21日 0 点赞 0 评论 895 浏览 评分:9.9
2042: 杨辉三角(感谢支持) 摘要:解题思路://我们来看一下代码重要的地方 //首先,我们一定要把这里的数组定义为long long int 形式,要不然会炸掉((╯‵□′)╯炸弹!•••*~●) long long int a[…… 题解列表 2023年07月21日 0 点赞 3 评论 240 浏览 评分:9.9
1347: 八皇后(dfs) 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int n; bool vis1[13],vis2[26],vis3[26]; …… 题解列表 2023年07月21日 0 点赞 0 评论 301 浏览 评分:0.0
鸡你太美:坤坤三角 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){ in…… 题解列表 2023年07月21日 0 点赞 0 评论 286 浏览 评分:4.7
2042: 杨辉三角2.0版 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){ in…… 题解列表 2023年07月21日 0 点赞 0 评论 285 浏览 评分:0.0
自由下落的距离计算(这题题目会有点让人误解,对理解循环很有帮助) 摘要:解题思路: 题目有点不好理解,可能是我语文不好吧,注意这里题目的总共经过的路程是在第N次落地为止,不包括那要求的第N次落地后反弹的高度, 这是我第一次写的时候的 ```c #include …… 题解列表 2023年07月21日 0 点赞 0 评论 303 浏览 评分:0.0
优质题解 信息学奥赛一本通T1308-高精除(C++代码解析和详细题解) 摘要:代码解析: 1. isSmaller函数用于判断一个字符串是否比另一个字符串更小。它首先比较两个字符串的长度,如果长度不同,则较短的字符串更小。如果长度相同,则从左到右逐个比较字符的大小,直到找到一…… 题解列表 2023年07月21日 0 点赞 0 评论 1058 浏览 评分:9.0
有规律的数列求和.数组法 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ { double a[100]={2,3},b[100]={1,2},js=0; …… 题解列表 2023年07月21日 0 点赞 0 评论 226 浏览 评分:0.0
2046: 输出全排列(利用dfs) 摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int n; bool vis[11]; int arr[11]; void …… 题解列表 2023年07月21日 0 点赞 0 评论 201 浏览 评分:0.0
宏定义的练习 摘要:解题思路:注意事项:注意要求是a/b的余数 余数参考代码:#include<stdio.h> #define yushu (a%b) int main() { int a,b,c;…… 题解列表 2023年07月21日 0 点赞 0 评论 474 浏览 评分:9.9