编写题解 2794: 求平均年龄 摘要:解题思路:注意事项:参考代码:data_list = list(map(int, input().split())) # 第一行输入的数据 age_sum = 0 # 年龄总和 count =…… 题解列表 2023年12月14日 0 点赞 0 评论 809 浏览 评分:8.4
2786: 判断能否被3、5、7整除 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int n, count = 0; cin >> n; …… 题解列表 2023年12月14日 1 点赞 0 评论 464 浏览 评分:0.0
利用数组解决Sn求和 摘要:解题思路:首先明确n和a的关系每当n增加一个数值,a增加一倍可以得到a*10+2;最后对得到的每个a进行储存,最后求和注意事项:参考代码:#include<stdio.h>int main(){ in…… 题解列表 2023年12月14日 0 点赞 0 评论 307 浏览 评分:0.0
优先队列 + map 摘要:解题思路:数据为10e5 暴力n^2 肯定会超时可以利用小根堆来做注意事项:由于value不断的加可能超过INT_MAX,所以value类型为long long参考代码:#include<iostr…… 题解列表 2023年12月14日 0 点赞 2 评论 1271 浏览 评分:9.5
查找特定的值 摘要:解题思路:注意事项:参考代码:import java.util.Scanner;public class Java { public static void java(String[] args…… 题解列表 2023年12月14日 0 点赞 2 评论 412 浏览 评分:9.9
c++指针法(指针练习) 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ char arr[100]; cin.getline(arr,100…… 题解列表 2023年12月14日 0 点赞 0 评论 444 浏览 评分:0.0
C++二维数组装置,可不限与3*3大小 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int arr[3][3]; int i,j; for (i=0;i…… 题解列表 2023年12月14日 0 点赞 0 评论 367 浏览 评分:0.0
编写题解 2784: 收集瓶盖赢大奖 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int a,b; cin>>a>>b; if(10…… 题解列表 2023年12月14日 0 点赞 0 评论 365 浏览 评分:0.0
C语言训练-列出最简真分数序列之利用循环和条件判断输出最简真分数 摘要:### 解题思路: 理解题目含义,可知所有偶数和5的倍数都需要进行化简,因此只需要通过循环输出除1之外的奇数但不是5的倍数的数与40的比值即可。以下是解题的思路: 1. 使用`for`循环…… 题解列表 2023年12月14日 0 点赞 0 评论 618 浏览 评分:9.9
[编程入门]结构体之成绩统计2(C语言解法) 摘要:解题思路:无注意事项:无参考代码:#include<stdio.h>#include<malloc.h>typedef struct _Student{ char num[10]; cha…… 题解列表 2023年12月14日 0 点赞 0 评论 408 浏览 评分:9.9