weixin_44235975的博客

私信 关注
lhw23333
码龄2年
  • 1,704
    被访问量
  • 17
    原创文章
  • 466,709
    作者排名
  • 0
    粉丝数量
  • 于 2018-12-23 加入CSDN
获得成就
  • 获得1次点赞
  • 内容获得2次评论
  • 获得1次收藏
荣誉勋章
兴趣领域
  • #算法
    #迁移学习
  • 最近
  • 文章
  • 资源
  • 问答
  • 课程
  • 帖子
  • 收藏
  • 关注/订阅

2021-01-16

原创
5阅读
0评论
0点赞
发布博客于 3 月前

2021-01-02

原创
9阅读
0评论
0点赞
发布博客于 3 月前

2021-01-01

原创
497阅读
2评论
0点赞
发布博客于 3 月前

2020-12-27

原创
13阅读
0评论
0点赞
发布博客于 3 月前

欢迎使用CS阿斯顿DN-markdown编辑器

原创
12阅读
0评论
0点赞
发布博客于 5 月前

unity(1)StickPin

RotateSelf.cs控制圆靶旋转using System.Collections;using System.Collections.Generic;using UnityEngine;public class RotateSelf : MonoBehaviour{ public float speed = 90;//旋转速度 void Update() ...
原创
24阅读
0评论
0点赞
发布博客于 2 年前

日期正误判断

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...
原创
67阅读
0评论
0点赞
发布博客于 2 年前

二分 验证答案

#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;...
原创
52阅读
0评论
0点赞
发布博客于 2 年前

最大公共子串 动态规划

#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...
原创
111阅读
0评论
0点赞
发布博客于 2 年前

蓝桥杯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,...
原创
31阅读
0评论
0点赞
发布博客于 2 年前

图的储存pro

Dijkstar算法通过找最近点依次向外松弛,通过不断更新最终达到源点向任意点的最短距离#include&lt;stdio.h&gt;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...
原创
40阅读
0评论
0点赞
发布博客于 2 年前

广搜

#include&amp;amp;amp;lt;stdio.h&amp;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...
原创
369阅读
0评论
1点赞
发布博客于 2 年前

深度优先搜索

#include&amp;amp;lt;stdio.h&amp;amp;gt;int a[10],book[10],n;//全局变量默认为0 void dfs(int step){ int i; if(step==n+1) { for(i=1;i&amp;amp;lt;=n;i++) printf(&amp;quot;%d&amp;quot;,a[i]); printf(
原创
59阅读
0评论
0点赞
发布博客于 2 年前

链表

#include&amp;lt;stdio.h&amp;gt;#include&amp;lt;stdlib.h&amp;gt;struct node{ int data; struct node *next; };int main(){ struct node *head,*p,*q,*t; int i,n,a; scanf(&quot;%d&quot;,&amp;amp;n); head=NULL;//初始头指
原创
29阅读
0评论
0点赞
发布博客于 2 年前

树状数组

题目蒜头君经营着一个不大的水果店。他认为生存之道就是经营最受顾客欢迎的水果。现在他想要一份水果销售情况的明细表,这样就可以很容易掌握所有水果的销售情况了。蒜头君告诉你每一笔销售记录的水果名称,产地和销售的数量,请你帮他生成明细表。输入格式第一行是一个整数 N(0&lt;N≤1000) N(0 &lt; N \le 1000)N(0&lt;N≤1000),表示共有 N NN 次成功的交易。...
原创
45阅读
0评论
0点赞
发布博客于 2 年前

c语言随机数

随机值函数rand()首先需要包含头文件#include &lt;time.h&gt;计算机的优点是准确,并不擅长随机和模拟,所以使用的rand()函数并不是真正意义上的随机,而是一种伪随机数使用 rand() 生成随机数之前需要用随机发生器的初始化函数 srand(unsigned seed)(也位于 stdlib.h 中)进行随机数序列初始化,seed称之为随机种子,具体影响什么未知,我理...
原创
83阅读
0评论
0点赞
发布博客于 2 年前

栈的第一次接触

困难1:如何表示括号配对困难2:标记值没有在循环开始时归零困难3:垃圾数据没有处理,提前判错的数据未处理时会进入下一次循环导致错误困难3的解决方案:放弃边输入边处理的处理方式,改为一次性输入存入数组,再用循环处理判断#include&lt;stdio.h&gt;#include&lt;string.h&gt;#include&lt;math.h&gt;char a[10005];i...
原创
37阅读
0评论
0点赞
发布博客于 3 年前