会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
haggard
秦诗瑶本瑶专赏
博客园
首页
新随笔
联系
订阅
管理
2025年11月26日
项目篇
摘要: 七天内自动登录实现 使用 \(cookie\) 根据是否勾选,来设置 \(cookie\) 过期时间,在每次用户访问页面的时候读取 \(token\) 并且验证他的有效性. 设置 $cookie$ import Cookies from 'js-cookie'; // 设置 Cookie funct
阅读全文
posted @ 2025-11-26 15:44 什么时候才能不困
阅读(0)
评论(0)
推荐(0)
2025年10月27日
Day1
摘要: 从今天开始记录 $ HTML$ 篇: $ src $ 和 $ href $ 区别 主要功能: 加载外部资源 1.$ src $ 当浏览器解析到该元素的时候,会暂停其他资源的加载和处理,直到该资源加载完成。 2. $ href $ 指向外部资源所在的位置,和当前元素位置建立链接,当浏览器识别到他指向的
阅读全文
posted @ 2025-10-27 20:53 什么时候才能不困
阅读(14)
评论(0)
推荐(0)
2024年7月10日
Codeforces Round 916 (Div. 3)
摘要: A. Problemsolving Log 签到题,对于给出的字符串,记录每个字母出现的次数,然后遍历一遍,如果对应的字母出现的次数大于它的位次,则说明该题被解出来了,最后输出解题数量即可 点击查看代码 #include<iostream> #include<cstdio> #include<alg
阅读全文
posted @ 2024-07-10 09:00 什么时候才能不困
阅读(83)
评论(0)
推荐(0)
2024年7月5日
Yet Another Sigma Problem
摘要: 题目传送门 题目 跳转看吧 题解 哈希,字典树 对字符串的前缀进行哈希处理,转换为数字,用 \(map\) ,然后为了避免重复,可以将每一种公共字符串前缀的权重都设置为1 例如: \(a\) , \(ab\) , \(aba\) 权重都为1,因为 \(ab\) 是2,但是有一种包含在 \(a\) 里
阅读全文
posted @ 2024-07-05 15:36 什么时候才能不困
阅读(23)
评论(0)
推荐(0)
2023年11月26日
DFS搜索算法
摘要: 简介 深度优先搜索算法\((Depth First Search,\) 简称 \(DFS):\) 一种用于遍历或搜索树或图的算法。 沿着树的深度遍历树的节点,尽可能深的搜索树的分支。当节点 \(v\) 的所在边都己被探寻过或者在搜寻时结点不满足条件,搜索将回溯到发现节点 \(v\) 的那条边的起始节
阅读全文
posted @ 2023-11-26 20:33 什么时候才能不困
阅读(53)
评论(0)
推荐(0)
2023年11月6日
头歌_二叉树
摘要: 第一关: 第一关 #pragma once # include <bits/stdc++.h> using namespace std; namespace exa{ struct bnode { struct bnode * lchild, * rchild; char data; }; type
阅读全文
posted @ 2023-11-06 08:17 什么时候才能不困
阅读(61)
评论(0)
推荐(0)
2023年10月9日
头歌-03 - 队列
摘要: 第一关 #include <stdio.h> #include <stdlib.h> #include "SeqQueue.h" SeqQueue* SQ_Create(int maxlen) // 创建顺序队列, 队列最多存储maxlen个队列元素。 { SeqQueue* sq=(SeqQueu
阅读全文
posted @ 2023-10-09 09:13 什么时候才能不困
阅读(76)
评论(0)
推荐(0)
头歌-02 - 栈
摘要: 第一关 #include <stdio.h> #include <stdlib.h> #include "SeqStack.h" /*创建一个栈*/ SeqStack* SS_Create(int maxlen) { SeqStack* ss=(SeqStack*)malloc(sizeof(Seq
阅读全文
posted @ 2023-10-09 09:11 什么时候才能不困
阅读(27)
评论(0)
推荐(0)
2023年9月25日
数位dp
摘要: d数位dp #include <iostream> #include <cstring> #include <algorithm> #include <string> #include <cmath> #include <vector> using namespace std; const int
阅读全文
posted @ 2023-09-25 09:31 什么时候才能不困
阅读(20)
评论(0)
推荐(0)
头歌-01链表及其使用
摘要: 第一题 #include "linearList.h" node *insertTail(node *h, node *t) { // 请在此添加代码,补全函数insertTail /********** Begin *********/ if(h==NULL) { t->next=NULL; re
阅读全文
posted @ 2023-09-25 09:09 什么时候才能不困
阅读(95)
评论(0)
推荐(0)
下一页
公告
// /* */