题解列表

筛选

采药 (C++代码)

摘要:解题思路: 逐渐求最大值(模板题,-多阶段决策问题)注意事项:遍历是从最大值数组中的1到你拥有的时间t参考代码:#include <cstdio>#include <algorithm>using n……

IP判断 (C语言代码)

摘要:解题思路:1.IP地址含有3个点“.”2.每一个数字不能以0开头3.每一个数字在[0,9]注意事项:参考代码:#include <stdio.h>#include <string.h>int main……

蛇行矩阵 (C语言代码)

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n,i=0,j,k,m;  int a[100][100]={0};  scanf("%d",&n);……