04 2024 档案
摘要:D - Grid and Magnet https://atcoder.jp/contests/abc351/tasks/abc351_d 思路 定义输入矩阵元素值 s matrix each cell can have three possible values: 0 - emtpy and no
阅读全文
摘要:C - Merge the balls https://atcoder.jp/contests/abc351/tasks/abc351_c 思路 使用stack 记录 序列路径 对栈顶两个元素 尝试做缩减处理。 Code https://atcoder.jp/contests/abc351/subm
阅读全文
摘要:mysqlalchemy audit extension https://sqlalchemy-declarative-extensions.readthedocs.io/en/stable/audit_tables.html from sqlalchemy import Column, types
阅读全文
摘要:what https://zhuanlan.zhihu.com/p/137896709 Tutorial https://www.runoob.com/w3cnote/mysql-stored-procedure.html DEMO[create procedure + call from pyth
阅读全文
摘要:记录指定参数变化 https://zhuanlan.zhihu.com/p/439273702 DELIMITER // CREATE TRIGGER log_sales_updates AFTER UPDATE ON sales FOR EACH ROW Insert into audit_log
阅读全文
摘要:mysql+phpmysqladmin https://github.com/fanqingsong/docker-mysql-phpadmin 使用phpMysqlAdmin来管理mysql
阅读全文
摘要:Principles of Object Oriented Class Design https://staff.cs.utu.fi/~jounsmed/doos_06/material/DesignPrinciplesAndPatterns.pdf The Open Closed Principl
阅读全文
摘要:F - Transpose https://atcoder.jp/contests/abc350/tasks/abc350_f 思路 开辟数组,记录左右括号配对的位置值, 例如: 串:a(s)l 位置: 01234 数组值为 配对数组: 03010 数组构成方法为 使用stack 记录左括号位置,遇
阅读全文
摘要:D - New Friends https://atcoder.jp/contests/abc350/tasks/abc350_d 思路 此sns网络,可能包括若干个连同子图, 对于每个子图, 计算 连通子图中 成员数目, 和 连接数目, 计算全连接子图,需要的总的连接数目, 减去当前连接数目, 得
阅读全文
摘要:C - Sort https://atcoder.jp/contests/abc350/tasks/abc350_c 思路 开辟一个map, 对于输入排列数组,记录每个值所在的位置 (因为后面做位置替换的时候,需要快速找到 当前位置上 值 对应位置) 遍历数组,如果当前位置i,存放的就是当前位置值i
阅读全文
摘要:Controlling the Flow with Stage, Lock, and Milestone https://www.jenkins.io/blog/2016/10/16/stage-lock-milestone/ 此方案是按照开启并发执行, 多个building同时执行, 其中有一个b
阅读全文
摘要:135. 分发糖果 https://leetcode.cn/problems/candy/description/?envType=study-plan-v2&envId=top-interview-150 Code class Solution { public: int candy(vector
阅读全文
摘要:Vault high availability with Consul https://developer.hashicorp.com/vault What is Vault? Secure, store, and tightly control access to tokens, password
阅读全文
摘要:Discover services with Consul https://www.consul.io/use-cases/discover-services Use Consul as a centralized registry that discovers, tracks, and monit
阅读全文