题解列表

筛选

等差数列(简单公式)

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0; int a1=2; int d=3; scanf("%d",&n); sum=n*a1……

结构体之成绩记录

摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct  {     char num[20];     char name[20];     int score[3……

2801: 奇数求和题解

摘要:解题思路:注意事项:#include <bits/stdc++.h>using namespace std;typedef long long  ll;int main(){  int n,m;cin……

自由下落计算

摘要:解题思路:1.  luodi  函数:- 首先处理了  n  为 1 和 2 的特殊情况,直接返回相应的计算结果。- 对于  n > 2  的情况,先计算出  luodi(m, n - 1)  和  ……

real_count经典命名

摘要:#include<stdio.h> int main(void) {     int n;     scanf("%d", &n);     int flag[100] = {0};   ……

一定要细心啊(不难)

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) {     int n;     printf("Please enter the number……

烈焰 燃毁!!!

摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; #define mo 1000007 // 定义模数,用于结果取模 int……

有点思维难度

摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) {     int n, i;     scanf("%d", &n);     int a[……

谁考了第k名 C++

摘要:```cpp #include using namespace std; // 定义学生结构体 struct Student { int id; // 学号 ……