题解列表

筛选

2042: 杨辉三角(感谢支持)

摘要:解题思路://我们来看一下代码重要的地方 //首先,我们一定要把这里的数组定义为long long int 形式,要不然会炸掉((╯‵□′)╯炸弹!•••*~●) long long int a[……

1347: 八皇后(dfs)

摘要:解题思路:注意事项:参考代码:#include <iostream> using namespace std; int n; bool vis1[13],vis2[26],vis3[26]; ……

鸡你太美:坤坤三角

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){    in……

2042: 杨辉三角2.0版

摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;long long a[1005][1005];int main(){    in……
优质题解

信息学奥赛一本通T1308-高精除(C++代码解析和详细题解)

摘要:代码解析: 1. isSmaller函数用于判断一个字符串是否比另一个字符串更小。它首先比较两个字符串的长度,如果长度不同,则较短的字符串更小。如果长度相同,则从左到右逐个比较字符的大小,直到找到一……

有规律的数列求和.数组法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    {        double a[100]={2,3},b[100]={1,2},js=0;      ……

宏定义的练习

摘要:解题思路:注意事项:注意要求是a/b的余数  余数参考代码:#include<stdio.h> #define yushu (a%b) int main() {     int a,b,c;……