题解列表

筛选

2042: 杨辉三角

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

带参数宏定义练习

摘要:解题思路:用宏定义来交换a,b的值,宏定义#define SWAP(a,b){a=a+b;b=a-b;a=a-b;}以此来交换a,b的值,在程序中,用swap来调用注意事项:参考代码:#include……

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

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

2042: 杨辉三角2.0版

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