搜索功能实现
www.jinhenghaoblog.top 非常感谢这位up主,找了很多的资料,但都讲的很粗略,这篇真的很详细ღ( ´・ᴗ・` ) 问题1:我的search.js文件我把它移到了D:/blog/source/js 原因: 我的搜索页面我是写在了D:/blog/source/search/index.md中(这文件直接建,然后粘贴上面链接中相应的要粘贴的内容即可),当点击搜索时跳转到页面/second/search/ ,index.md文件中写的跳转路径为js/search.js默认是在当前/second/search/路径下找,故移动 —问题2:12345678910<script type="text/javascript"> var search_path = "search.xml"; if (search_path.length == 0) {...
补题
2025.9.28D-小红的好数对_牛客周赛 Round 111 解题思路: 巧妙枚举 a*10^len(b)+b%11=0; -> b%11=-a*10^len(b); [!IMPORTANT] //减法取模(A - B) % mod =((A % mod) - (B % mod) +mod) % mod 123456789101112131415161718192021222324252627282930313233343536373839404142#include <bits/stdc++.h>using namespace std;#define int long longconst int inf=0x3f3f3f3f,N = 2e5 + 5;int a[N],sz[N];int p[15];int f[15][11];void init(){ p[0]=1; for(int i=1;i<=11;i++){ p[i]=(p[i-1]*10)%11...
ACM成长
模版123456789101112131415161718#include <bits/stdc++.h>using namespace std;#define int long longconst int inf=0x3f3f3f3f,N = 1e6 + 5;void solve(){ }signed main(){ ios::sync_with_stdio(0), cin.tie(0), cout.tie(0); int t=1; cin>>t; while(t--){ solve(); } return 0;} 对浮点的处理const double pi=acos(-1,0)//或者2*acos(0); [!CAUTION] 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535...
个人网站搭建
欢迎来到我的博客这是我用 Hexo + GitHub 搭建的第一个博客文章 【2023最新版】Hexo+github搭建个人博客并绑定个人域名_github搭建hexo博客绑定域名-CSDN博客 网页美化: hexo博客搭建&美化教程 | 深白色的赛博产房 (20 封私信 / 33 条消息) Hexo 博客美化合集(不断更新) - 知乎 安装nodejs后进行测试显示如下错误:12345nvm-desktop: command not found: "node"解决:因为是用nvm-desktop对nodejs进行管理所以与大部分的错误不同,我需要在nvm-desktop下载对应的版本以及应用才可显示对应的版本。 express出现在node_cache中:1对node_cache和node_global的命令处理不一样,我把他们的命令弄相同了。 Permission denied (publickey).12345我在密钥那一步显示的是$ ssh -T git@github.comgit@github.com: Permi...
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment
