Stay Hungry,Stay Foolish!

11 2022 档案

摘要:D - Freefall https://atcoder.jp/contests/abc279/tasks/abc279_d 思路 求凹函数的极小值 https://www.cnblogs.com/luoyj/p/12408277.html#6 #include<bits/stdc++.h> usi 阅读全文
posted @ 2022-11-27 22:34 lightsong 阅读(98) 评论(0) 推荐(0) 编辑
摘要:E - Crystal Switches https://atcoder.jp/contests/abc277/tasks/abc277_e 思路 做双层图分离。 使用虚线连接两个图,表示switch动作。 使用双端队列,结合最短路算法,从1出发,遍历所有节点。 取两个目标节点路径更小值。 Code 阅读全文
posted @ 2022-11-19 12:07 lightsong 阅读(42) 评论(0) 推荐(0) 编辑
摘要:Q-Learning https://www.geeksforgeeks.org/q-learning-in-python/ Reinforcement Learning briefly is a paradigm of Learning Process in which a learning ag 阅读全文
posted @ 2022-11-14 22:38 lightsong 阅读(256) 评论(0) 推荐(0) 编辑
摘要:D - Takahashi's Solitaire https://atcoder.jp/contests/abc277/tasks/abc277_d 思路 先计算所有的输入的和 total, 将输入列表首先进行排列 找到所有连续段和中最大的值 maxsum, 此处连续满足条件 a[i] == a[ 阅读全文
posted @ 2022-11-13 23:46 lightsong 阅读(94) 评论(0) 推荐(0) 编辑
摘要:C - Ladder Takahashi https://atcoder.jp/contests/abc277/tasks/abc277_c 思路 把梯子可达楼层看成图的节点 把梯子看成节点之间的连线 所以整个问题变成图的遍历问题,找到所有节点的最大值。 Code https://atcoder.j 阅读全文
posted @ 2022-11-13 23:39 lightsong 阅读(125) 评论(0) 推荐(0) 编辑
摘要:How JWT (JSON Web Token) authentication works? https://www.idiotinside.com/2019/09/26/how-jwt-authentication-works/ What is JWT (JSON Web Token)? JSON 阅读全文
posted @ 2022-11-10 23:18 lightsong 阅读(41) 评论(0) 推荐(0) 编辑
摘要:TOPIC https://fastapi.tiangolo.com/advanced/security/oauth2-scopes/ FASAPI不支持OAuth2的全部流程,但是支持scopes功能, 类似一起全集API,特定的用户只能访问其scope范围之内的API, 使用此功能, 即不再是登 阅读全文
posted @ 2022-11-10 16:21 lightsong 阅读(197) 评论(0) 推荐(0) 编辑
摘要:OAuth2 https://oauth.net/2/ OAuth 2.0 OAuth 2.0 is the industry-standard protocol for authorization. OAuth 2.0 focuses on client developer simplicity 阅读全文
posted @ 2022-11-10 16:09 lightsong 阅读(101) 评论(0) 推荐(0) 编辑
摘要:泛型(Generics) https://www.geeksforgeeks.org/generics-in-java/ 一般类的定义,其引用类是要在其代码中明确指定的 但是对于一些上层公共逻辑,其期望可以应用到若干引用类中 则定义泛型类, 可以满足这种需求。 泛型类在使用的使用, 才绑定具体的引用 阅读全文
posted @ 2022-11-08 10:49 lightsong 阅读(333) 评论(0) 推荐(0) 编辑
摘要:FastAPI CRUD Router https://github.com/awtkns/fastapi-crudrouter fastapi提供基础的制作API能力 对于简单的业务来说,对于表仅仅需要 CRUD 接口,不需要其他额外的数据逻辑, 对于这种情况,我们希望能够快速提供对指定表格的 C 阅读全文
posted @ 2022-11-02 22:28 lightsong 阅读(346) 评论(0) 推荐(0) 编辑
摘要:dataset https://dataset.readthedocs.io/en/latest/index.html https://github.com/pudo/dataset 让开发者像操作JSON一样,操作DB dataset提供了一个简单的抽象层,开发者使用最简单的方法执行CRUD. A 阅读全文
posted @ 2022-11-01 18:25 lightsong 阅读(31) 评论(0) 推荐(0) 编辑

千山鸟飞绝,万径人踪灭
点击右上角即可分享
微信分享提示