- 博客(20)
- 收藏
- 关注
原创 【无标题】
[外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-ZH1fnsJu-1645349578481)(https://github.com/lhw23333/DarkSoul-DMC_ViewController/blob/main/gif/boss%E6%8A%95%E6%8E%B7%E6%94%BB%E5%87%BB.gif)][外链图片转存失败,源站可能有防盗链机制,建议将图片保存下来直接上传(img-dNj6wBct-1645349601010)(!%5Bimage%5D%2
2022-02-20 17:34:19
74
原创 【无标题】
这里写自定义目录标题欢迎使用Markdown编辑器新的改变功能快捷键合理的创建标题,有助于目录的生成如何改变文本的样式插入链接与图片如何插入一段漂亮的代码片生成一个适合你的列表创建一个表格设定内容居中、居左、居右SmartyPants创建一个自定义列表如何创建一个注脚注释也是必不可少的KaTeX数学公式新的甘特图功能,丰富你的文章UML 图表FLowchart流程图导出与导入导出导入欢迎使用Markdown编辑器你好! 这是你第一次使用 Markdown编辑器 所展示的欢迎页。如果你想学习如...
2022-02-01 20:55:19
80
原创 unity(1)StickPin
RotateSelf.cs控制圆靶旋转using System.Collections;using System.Collections.Generic;using UnityEngine;public class RotateSelf : MonoBehaviour{ public float speed = 90;//旋转速度 void Update() ...
2019-11-23 01:27:30
103
原创 日期正误判断
bool judge(int year,int month,int day){if(year < 1960 || year >2059) return false;if(month <= 0 || month >12) return false;if(year % 400 == 0 || year % 100 != 0 && year % 4...
2019-03-23 16:45:08
131
原创 二分 验证答案
#include #include <string.h>#include #include <stdio.h>#include using namespace std;typedef long long ll;ll hi[100010];ll wi[100010];int n;ll k;bool isok(ll ans){ll sum = 0;...
2019-03-22 23:33:26
201
原创 最大公共子串 动态规划
#include <stdio.h>#include <string.h>#define N 256int f(const char* s1, const char* s2){int a[N][N];int len1 = strlen(s1);int len2 = strlen(s2);int i,j;memset(a,0,sizeof(int)*N*N...
2019-03-22 22:45:53
198
原创 蓝桥杯4题
#include <algorithm>#include <string.h>#include <iostream>#include <stdio.h>using namespace std;int N = 6;int ans = 0;int que[7][7];int dis[4][2] = {0,1,1,0,0,-1,-1,...
2019-03-22 20:42:39
78
原创 图的储存pro
Dijkstar算法通过找最近点依次向外松弛,通过不断更新最终达到源点向任意点的最短距离#include<stdio.h>int dis[1000];int book[1000];int e[1000][1000];int inf=9999999;int main(){ int i,j,n,m,t1,t2,t3,u,v,min; scanf("%d%d",&am...
2019-03-02 03:54:39
84
原创 广搜
#include&amp;amp;lt;stdio.h&amp;amp;gt;struct node{ int x;//横坐标 int y;//纵坐标 int f;//父节点在队列中的编号,用于输出路径 int s;//步数 };int main(){ struct node que[2501];//创建队列记录坐标步数 int a[51][51]={0},book[51][51]={0...
2019-02-18 00:41:48
766
原创 深度优先搜索
#include&amp;lt;stdio.h&amp;gt;int a[10],book[10],n;//全局变量默认为0 void dfs(int step){ int i; if(step==n+1) { for(i=1;i&amp;lt;=n;i++) printf(&quot;%d&quot;,a[i]); printf(
2019-02-07 18:56:57
113
原创 链表
#include&lt;stdio.h&gt;#include&lt;stdlib.h&gt;struct node{ int data; struct node *next; };int main(){ struct node *head,*p,*q,*t; int i,n,a; scanf("%d",&amp;n); head=NULL;//初始头指
2019-02-07 01:29:09
64
原创 树状数组
题目蒜头君经营着一个不大的水果店。他认为生存之道就是经营最受顾客欢迎的水果。现在他想要一份水果销售情况的明细表,这样就可以很容易掌握所有水果的销售情况了。蒜头君告诉你每一笔销售记录的水果名称,产地和销售的数量,请你帮他生成明细表。输入格式第一行是一个整数 N(0<N≤1000) N(0 < N \le 1000)N(0<N≤1000),表示共有 N NN 次成功的交易。...
2019-02-04 02:30:37
86
原创 c语言随机数
随机值函数rand()首先需要包含头文件#include <time.h>计算机的优点是准确,并不擅长随机和模拟,所以使用的rand()函数并不是真正意义上的随机,而是一种伪随机数使用 rand() 生成随机数之前需要用随机发生器的初始化函数 srand(unsigned seed)(也位于 stdlib.h 中)进行随机数序列初始化,seed称之为随机种子,具体影响什么未知,我理...
2019-01-30 00:22:03
227
原创 栈的第一次接触
困难1:如何表示括号配对困难2:标记值没有在循环开始时归零困难3:垃圾数据没有处理,提前判错的数据未处理时会进入下一次循环导致错误困难3的解决方案:放弃边输入边处理的处理方式,改为一次性输入存入数组,再用循环处理判断#include<stdio.h>#include<string.h>#include<math.h>char a[10005];i...
2018-12-23 22:15:42
79
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人