题解列表

筛选

题解 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米高度自由下落,每次落地后返回原高度的一半,再落……

朴实无华的sort选择排序

摘要:解题思路:在bool那写入判断条件注意事项:参考代码:#include<iostream>#include<algorithm>using namespace std;bool cmp(int a,i……

编写题解 2879: 错误探测

摘要:解题思路:注意事项:参考代码:m=int(input())aList=[]flag1=1myList=[list(map(int,input().split())) for t in range(m)……