2836: 数组逆序重放 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ long long b; cin>>b; …… 题解列表 2024年04月07日 0 点赞 0 评论 161 浏览 评分:0.0
1050: [编程入门]结构体之成绩记录 摘要:解题思路:首先定义了一个结构体rec,包含学生的学号、姓名和三个成绩。然后定义了两个函数input和print,分别用于输入和输出学生信息。在main函数中,首先定义了一个结构体数组stu,用于存储学…… 题解列表 2024年04月07日 0 点赞 0 评论 265 浏览 评分:0.0
简单的斐波拉契·数列,加个限制条件就行(c语言) 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int dp[50];//dp[i]表示到位置i的方案数 int die[50];//存放陷阱位置 int IsDie(int x){…… 题解列表 2024年04月07日 0 点赞 0 评论 218 浏览 评分:0.0
飞机降落(仿写) 摘要:解题思路:记录注意事项:记录参考代码:#include<bits/stdc++.h> using namespace std; struct plane { int t,d,l; }…… 题解列表 2024年04月07日 0 点赞 0 评论 305 浏览 评分:0.0
不与最大数相同的数字之和 摘要:解题思路:先把数列中的全部数相加,最后再减去最大值就ok了注意事项:注意范围参考代码:n = int(input())a = list(map(int,input().split()))sum=0fo…… 题解列表 2024年04月07日 0 点赞 0 评论 265 浏览 评分:0.0
C++ 记忆化存储 摘要:解题思路:利用一个数组记录最长的接龙数组的长度 详细在注释注意事项:参考代码:#include<bits/stdc++.h>#define int long longusing namespace s…… 题解列表 2024年04月07日 0 点赞 0 评论 398 浏览 评分:0.0
C++ 桶和贪心 摘要:解题思路:利用桶记录每一种情况的数量 再用贪心找出最多的一个 但是得特判一下k为0的情况注意事项:参考代码:#include<iostream>#define int long longusing n…… 题解列表 2024年04月07日 0 点赞 0 评论 208 浏览 评分:0.0
使用ArrayLsit链表,普通for循环 摘要:解题思路:注意事项:参考代码:import java.util.*; public class Main { public static void main(String[] args…… 题解列表 2024年04月07日 0 点赞 0 评论 166 浏览 评分:0.0
编写题解 1546: 蓝桥杯算法提高VIP-班级排名 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int n, m, d, q = 0, ar[100] = { 0 }; char arr[…… 题解列表 2024年04月08日 0 点赞 0 评论 211 浏览 评分:0.0
编写题解 1782: 找出最长的字符串来 摘要:解题思路:注意事项:参考代码:#include <stdio.h> #include <string.h> int main() { char strings[5][101]; /…… 题解列表 2024年04月08日 0 点赞 0 评论 231 浏览 评分:0.0