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