结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include<stdio.h> struct { char num[20]; char name[20]; int score[3…… 题解列表 2024年12月29日 3 点赞 0 评论 1065 浏览 评分:0.0
编写题解 2816: 统计满足条件的4位数个数 摘要:解题思路:注意事项:注意分离数位的代码(见下面的代码第11行)参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long…… 题解列表 2024年12月29日 0 点赞 0 评论 581 浏览 评分: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 评论 686 浏览 评分:0.0
自由下落计算 摘要:解题思路:1. luodi 函数:- 首先处理了 n 为 1 和 2 的特殊情况,直接返回相应的计算结果。- 对于 n > 2 的情况,先计算出 luodi(m, n - 1) 和 …… 题解列表 2024年12月28日 0 点赞 0 评论 1253 浏览 评分:0.0
real_count经典命名 摘要:#include<stdio.h> int main(void) { int n; scanf("%d", &n); int flag[100] = {0}; …… 题解列表 2024年12月28日 0 点赞 0 评论 534 浏览 评分:0.0
一定要细心啊(不难) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int n; printf("Please enter the number…… 题解列表 2024年12月28日 1 点赞 0 评论 581 浏览 评分:0.0
烈焰 燃毁!!! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; #define mo 1000007 // 定义模数,用于结果取模 int…… 题解列表 2024年12月28日 0 点赞 0 评论 428 浏览 评分:0.0
有点思维难度 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(void) { int n, i; scanf("%d", &n); int a[…… 题解列表 2024年12月28日 1 点赞 1 评论 593 浏览 评分:10.0
谁考了第k名 C++ ```cpp#includeusingnamespacestd;//定义学生结构体structStudent{intid;//学号floatscore;//成绩};//自定义比较函数,根据score字段比较学生记录boolcompare(constStudent&a, 题解列表 2024年12月28日 0 点赞 0 评论 561 浏览 评分:0.0
编写题解 2997: 梯形面积 ```cpp#includeusingnamespacestd;intmain(){doublee;e=150*2/15*(15+25)/2;printf("%.2lf",e);return0;}``` 题解列表 2024年12月28日 7 点赞 0 评论 1915 浏览 评分:5.3