fe8529fd-a308-480e-bf67-44cadd9a563
名字竞技场 cyqq252?+101 cyqq252?+boss cyqq252?+IQ=0
apple:3901851667@qq.com
2012qq11Qq21!
https://www.yuny.tv/videoPlayer/63292739?detailId=178172
// ==UserScript==
// @name Florr.io | 修仙版
// @namespace Yh330
// @version idk
// @description 本脚本不会导致您被封号,请放心使用。
// @author Cortactin
// @match https://florr.io/
// @icon https://www.google.com/s2/favicons?sz=64&domain=diep.io
// @grant none
// ==/UserScript==
const thisArg = window;
const decoder = decodeURIComponent;
const atober = (s) => atob.call(thisArg, s);
const langKey = "florrio_custom_lang";
const localStorageHelper = (a, s) => s ? localStorage.setItem(a, s) : localStorage.getItem(a);
const langLS = (s) => localStorageHelper(langKey, s);
const versionLS = (s) => localStorageHelper("tksrvh", s);
const textcmLS = (s) => localStorageHelper("tksrcm", s);
const zero = +[]+[]*[];
if(!langLS()) (async () => {
var ad = "https://c2x2n.github.io/Xxbflr/";
const sec = (s) => `${ad}`+[s][+[]];
const af = async (s) => await (await fetch(sec(s))).text();
const settings = JSON.parse(await af("settings.json"));
const text = await af("main.txt");
var encodeText = text.split("").reverse().join("");
var splited = encodeText.split("////////[////////");
var mapped = splited.map(evv => decoder.call(thisArg, atober(evv).split('').map(function (c) {
return '%' + ("\\\\\"".repeat((zero+[zero].length)*2).replaceAll(`\\\\"`, zero)+ c.charCodeAt(0).toString(16)).slice(-2);
}).join('')));
const dd = mapped[0];
textcmLS(mapped[1]);
langLS(dd);
if (versionLS() != settings.vh){
versionLS(settings.vh);
var t = [];
var t1 = (s) => t.push.call(t,s);
t1("! 发现新版本")
t1(`[ 版本 ${settings.vh} ]`)
t1(`? 更新日志:`)
for(const i of settings.changelog[settings.vh]){
t1("· " +i);
}
alert(t.join("\n"));
}
thisArg.location.reload(true);
})();
const cm = JSON.parse(textcmLS());
if (cm) {
for (let ctx of [CanvasRenderingContext2D, OffscreenCanvasRenderingContext2D]) {
if (ctx.prototype.oldFillText == undefined) {
ctx.prototype.oldFillText = ctx.prototype.fillText;
ctx.prototype.oldStrokeText = ctx.prototype.strokeText;
ctx.prototype._text_replace = function(text = ""){
let answer = text;
Object.keys(cm).forEach((k) => {
const reg = new RegExp(k, "g");
answer = answer.replaceAll(reg, cm[k]);
});
return answer;
}
} else { break };
ctx.prototype.fillText = function (text, x, y) {
text = this._text_replace(text);
return this.oldFillText(text, x, y);
};
ctx.prototype.strokeText = function (text, x, y) {
text = this._text_replace(text);
return this.oldStrokeText(text, x, y);
};
}
}
无法复制? allow pasting
c106217c-55ca-4c4d-bdf3-878f86947080
console.log(localStorage.cp6_player_id)
https://www.luogu.com/article/mndnf6xr
5c593d7c-7d07-48cb-b780-b864f5c2d39b 4d62b7 https://enazo.cn/
https://www.cnblogs.com/luohc/p/florr.html
13586072001@163.com //7.19
#include<bits/stdc++.h>
using namespace std;
struct NODE{
int now,nxt;
}e[500005];
int tot=0;
int n,m,s;
int a[500005];
int logn;
void dfs(int u,int fa){
fa[u][0]=fa;
depth[u]=depth[fa]+1;
for(int i=1;i<=)
for(int i = 1; i <= lg[depth[now]]; ++i)
fa[now][i] = fa[fa[now][i-1]][i-1];
for(int i = head[now]; i; i = e[i].nex)
if(e[i].t != fath) dfs(e[i].t, now);
}
void init(){
d[root]=1;
dfs(root,0);
logn=log2(n);
for(int j=1;j<=logn;j++){
for(int i=1;i<=n;i++){
f[i][j]=f[f[i][j-1]][j-1];
}
}
}
int LCA(int x,int y){
if(d[x]<d[y]){
swap(d[x],d[y]);
}
}
int main(){
cin>>n>>m>>s;
for(int i=1;i<=n;i++){
int x,y;
cin>>x>>y;
tot++;
e[tot].now=x;
e[tot].nxt=a[y];
a[y]=tot;
tot++;
e[tot].now=y;
e[tot].nxt=a[y];
e[x]=tot;
}
return 0;
}
#include <bits/stdc++.h>
using namespace std;
vector<int> adj[500005];
int depth[500005];
int up[20][500005];
void bfs(int root) {
fill(depth, depth + 500005, -1);
queue<int> q;
q.push(root);
depth[root] = 0;
up[0][root] = 0;
while (!q.empty()) {
int u = q.front();
q.pop();
for (int v:adj[u]) {
if (depth[v] == -1) {
depth[v] = depth[u] + 1;
up[0][v] = u;
q.push(v);
}
}
}
}
void preprocess(int n) {
for (int j = 1; j < 20; ++j) {
for (int u = 1; u <= n; ++u) {
up[j][u] = up[j-1][up[j-1][u]];
}
}
}
int LCA(int a, int b) {
if(depth[a]<depth[b]){
swap(a,b);
}
for(int j=20-1;j>=0;j--){
if (depth[up[j][a]]>=depth[b]) {
a = up[j][a];
}
}
if (a == b){
return a;
}
for (int j = 20 - 1; j >= 0; --j) {
if (up[j][a] != up[j][b]) {
a = up[j][a];
b = up[j][b];
}
}
return up[0][a];
}
int main() {
int n, m, s;
cin >> n >> m >> s;
for (int i = 0; i < n-1; ++i) {
int x, y;
cin >> x >> y;
adj[x].push_back(y);
adj[y].push_back(x);
}
bfs(s);
preprocess(n);
while(m--) {
int a, b;
cin >> a >> b;
cout << lca(a, b) << '\n';
}
return 0;
}题号:CF607A
https://www.luogu.com.cn/paste/l8mlhozw
故事
fucyou