题解列表
2137: 信息学奥赛一本通T1273-货币系统 简单DP
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
// 定义全局变量n, m和数组a, dp
int n, m, a[110……
新手必看,俩for解决
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main() { int n,i,j,h,l; scanf("%d",&n); int a[n][n]; for(i=0;……
2139: 信息学奥赛一本通T1291-数字组合 两种方法超简单
摘要:解题思路:注意事项:参考代码:DFS#include"bits/stdc++.h"
using namespace std;
// 全局变量声明
int n, t, a[25]; // n: 数……
成绩排序C语言答案(char name[101]!!! 100会只得50分)
摘要:注意事项:分配足够的内存空间char name[101]!!! 100会只得50分参考代码:#include <stdio.h>
#include <stdlib.h>
#include <st……
数据结构-链表的基本操作--C语言
摘要:解题思路:保存题解注意事项:需要确保即使初始元素数量为 0,链表仍然有一个有效的头结点。这样可以避免在后续操作中因为 L 为 NULL 而导致的问题参考代码:#include <stdio.h>
#……
3059: 开餐馆 DP DP DP DP
摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h"
using namespace std;
int t,n,k,m[110],p[110],dp[1100];
int……