Hifipsysta-1106-奖学金(C++代码)结构体排序 ```cpp#include#includeusingnamespacestd;constintMAXN=1000;structstudent{intid;intChinese;intscore;}stu[MAXN];boolsort_rule(studenta, 题解列表 2022年02月07日 0 点赞 0 评论 688 浏览 评分:0.0
做题记录2022.2.7(ac:100%) 摘要:解题思路:采用深度优先搜索和回溯 是8皇后问题的拓展和延伸注意事项:参考代码:def check(row, column, pattern): global w…… 题解列表 2022年02月07日 0 点赞 0 评论 852 浏览 评分:0.0
7行代码解决蛇行矩阵(Python) ##解题思路:用二维数组来解决比较简单粗暴,把所有的结果都存入数组中首先初始化一下数组给他存个1,后面计算都是利用这个1进行第一步先解决纵列,一个加数是上一列的数,另一个加数是第几次处理我们把第几次处理看作i,写一个循环所以就有了下面的代码```num=int(input())ls=[[1]]fori 题解列表 2022年02月08日 0 点赞 0 评论 662 浏览 评分:0.0
我的i,j为啥不用加1呢?求解 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int a[6][6]; int i,j,n,max; sca…… 题解列表 2022年02月08日 0 点赞 2 评论 481 浏览 评分:0.0
又笨又直观的方法 摘要:解题思路:见注释注意事项:参考代码:#include<stdio.h>int judge(int a[],int n)//用于判断小朋友手里的糖是否相同{ int flog=a[0],k=0; for…… 题解列表 2022年02月08日 0 点赞 0 评论 583 浏览 评分:0.0
Hifipsysta-1734-二叉树遍历 ```cpp#include#includeusingnamespacestd;constintMAXN=27;structnode{chardata;node*lchild;node*rchild;//node(charc):data(c), 题解列表 2022年02月08日 0 点赞 0 评论 779 浏览 评分:0.0
两组判断解题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int judge1(int n){ int a[6],len,i=0,j=0; if(n<100000) len=5; else le…… 题解列表 2022年02月08日 0 点赞 0 评论 508 浏览 评分:0.0
编写题解 2012: 百分制成绩转换 ```pythonk=input()s=list(map(int,input().split()))l=int(input())count=0ifl==1:foriins:ifi>=90:count=count+1elifl==2:foriins:ifi>=80andi=70andi=60andi 题解列表 2022年02月08日 0 点赞 0 评论 605 浏览 评分:0.0
哈哈哈哈哈哈哈哈 摘要:解题思路:最小公倍数求解注意事项:不懂留言参考代码:#include<stdio.h>int hh(int a,int b){ return a>b?b:a;}int max(int a,int b)…… 题解列表 2022年02月08日 0 点赞 0 评论 563 浏览 评分:0.0
Hifipsysta-1697-数据结构-二叉链表存储的二叉树(C++代码) ```cpp#include#include#includeusingnamespacestd;structnode{chardata;node*lchild;node*rchild;};node*Creat(int&pos,stringstr){if(pos>=str.size()){returnN 题解列表 2022年02月08日 0 点赞 0 评论 833 浏览 评分:0.0