摘要: 起因 早在几年前我就做过随机图片了,但是一段时间过去后由于服务器到期的原因导致随机图片挂了。(详见这篇文章) 最近在学习k8s和docker的过程中了解到了sealos Cloud,感觉性价比非常高,于是思考起重新部署随机图片。 使用方法 可以直接在html或php中调用: <img src=htt 阅读全文
posted @ 2023-12-04 21:53 oblivionl 阅读(8) 评论(0) 推荐(0) 编辑
摘要: 并查集简介 并查集是一个树形的数据结构,能够实现以下功能: 将两个节点所属的两个集合合并 查询两个节点是否在一个集合里 并查集教学 我们以洛谷的并查集板题为例 P3367 【模板】并查集 首先我们有$n$个节点。 因为是树形结构,所以我们用$f[x]$记录节点$x$的父亲节点。 当我们把两个节点$x 阅读全文
posted @ 2022-11-20 20:24 oblivionl 阅读(25) 评论(0) 推荐(0) 编辑
摘要: 题目链接 K.复合函数 输入文件: standard input 输出文件: standard output 时间限制: 1 second 空间限制: 512 megabytes 给定正整数$n$,并记$I_n={1,2,\cdots,n}$。 给定一个定义在$I_n$上的函数$f$,满足对于任意$ 阅读全文
posted @ 2022-10-16 21:26 oblivionl 阅读(67) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2020-11-01 13:10 oblivionl 阅读(5) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Bridges 题目描述 An edge in an undirected graph is a bridgeif after removing it the graph will be disconnected. Given an undirected connected graph, 阅读全文
posted @ 2020-08-11 20:41 oblivionl 阅读(107) 评论(0) 推荐(0) 编辑
摘要: 题目链接 MEX Queries 题目描述 You are given a set of integer numbers, initially it is empty. You should perform \(n\) queries. There are three different types 阅读全文
posted @ 2020-08-11 19:03 oblivionl 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Intervals 题目描述 You are given \(n\) closed, integer intervals \([a_i,b_i]\) and \(n\) integers \(c_1\), ...,\(c_n\). Write a program that: reads t 阅读全文
posted @ 2020-08-11 18:34 oblivionl 阅读(105) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Sightseeing trip 题目描述 There is a travel agency in Adelton town on Zanzibar island. It has decided to offer its clients, besides many other attrac 阅读全文
posted @ 2020-08-11 18:33 oblivionl 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Non-trivial Common Divisor 题目描述 You are given a positive integer sequence \(A\) of length \(N\). You can remove any numbers from the sequence to 阅读全文
posted @ 2020-08-11 18:32 oblivionl 阅读(203) 评论(0) 推荐(0) 编辑
摘要: 题目链接 Patches 题目描述 Carlos is very concerned with the environment. Whenever possible, he tries to use less pollutingmeans of transport. He recently got 阅读全文
posted @ 2020-08-11 18:31 oblivionl 阅读(138) 评论(0) 推荐(0) 编辑