等差数列(简单公式) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,sum=0; int a1=2; int d=3; scanf("%d",&n); sum=n*a1…… 题解列表 2024年12月29日 2 点赞 0 评论 525 浏览 评分:0.0
结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct { char num[20]; char name[20]; int score[3…… 题解列表 2024年12月29日 3 点赞 0 评论 691 浏览 评分:0.0
编写题解 2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:注意分离数位的代码(见下面的代码第11行)参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long…… 题解列表 2024年12月29日 0 点赞 0 评论 187 浏览 评分:0.0
2801: 奇数求和题解 摘要:解题思路:注意事项:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ int n,m;cin…… 题解列表 2024年12月29日 0 点赞 0 评论 273 浏览 评分:0.0
自由下落计算 摘要:解题思路:1. luodi 函数:- 首先处理了 n 为 1 和 2 的特殊情况,直接返回相应的计算结果。- 对于 n > 2 的情况,先计算出 luodi(m, n - 1) 和 …… 题解列表 2024年12月28日 0 点赞 0 评论 622 浏览 评分:0.0
real_count经典命名 摘要:#include<stdio.h> int main(void) { int n; scanf("%d", &n); int flag[100] = {0}; …… 题解列表 2024年12月28日 0 点赞 0 评论 227 浏览 评分:0.0
一定要细心啊(不难) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int n; printf("Please enter the number…… 题解列表 2024年12月28日 1 点赞 0 评论 262 浏览 评分:0.0
烈焰 燃毁!!! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; #define mo 1000007 // 定义模数,用于结果取模 int…… 题解列表 2024年12月28日 0 点赞 0 评论 125 浏览 评分:0.0
有点思维难度 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int n, i; scanf("%d", &n); int a[…… 题解列表 2024年12月28日 1 点赞 1 评论 233 浏览 评分:10.0
谁考了第k名 C++ 摘要:```cpp #include using namespace std; // 定义学生结构体 struct Student { int id; // 学号 …… 题解列表 2024年12月28日 0 点赞 0 评论 204 浏览 评分:0.0