题解列表

筛选

递归函数法

摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int b[5],i=0,mask2=1,n=0;int fun(int a ,int w){ if……

题解 1671: 小九九 C语言

摘要:解题思路:注意事项:参考代码:#define _CRT_SECURE_NO_WARNINGS#include<stdio.h>int main(){    for (int i = 1; i <= 9……

利用循环解决(C++)

摘要:解题思路:注意事项:注意sum和Sn需要long long 类型,不然会超界参考代码:#include<iostream>using namespace std;int main(){    int ……

数组存储,循环相除(C++)

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<cmath>using namespace std;int main(){    int arr[3] = { 0 ……

一个递归解决

摘要:解题思路:F_2是分子,F_1是分母注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std; double F_2(int n……

利用循环实现等比数列

摘要:解题思路:注意事项:参考代码:#include<iostream>#include<iomanip>using namespace std;//一球从M米高度自由下落,每次落地后返回原高度的一半,再落……