yao177's repos on GitHub
TypeScript · 55 watchers
cursor2api-workers
将 Cursor API 转换为 OpenAI/Anthropic 兼容格式的代理服务。提供 Claude Code工具及图片支持。
JavaScript · 21 watchers
sillygirl-plugin
自用傻妞插件
Python · 3 watchers
PagerMaid-Modify
Python · 1 watchers
AutoApiSecret
加密版,应用id/机密不再可见
Python · 1 watchers
ConfluencePictureDump
Help save external url picture as attachment in Confluence.
Java · 1 watchers
DUT-flower-shop
花店管理系统
Python · 1 watchers
genshin-impact-helper
Auto get Genshin Impact daily bonus by GitHub Actions. 米游社原神自动每日签到
C++ · 1 watchers
JXOnline3-mobile-tool
剑网3指尖江湖手游查询工具
Go · 1 watchers
sillyGirl-build
sillyGirl-build
1 watchers
web-archive
Free web archiving and sharing service based on Cloudflare. 基于 Cloudflare 的免费网页归档和分享工具。
C · 0 watchers
201693082-RFC-Group15-AODV
协议栈大作业
0 watchers
Aether
0 watchers
Bet
An interactions.py extension to create bots that organize compotitions and provide betting experience in a specified Discord channel.
0 watchers
bilibili-API-collect
仓库SocialSisterYi/bilibili-API-collect的贡献者复刻,基础内容同步在master分支于2026年1月25日。main分支用于额外存档部分外部资源,若只要原始仓库存档应使用master分支。
JavaScript · 0 watchers
bilibili-helper-o
哔哩哔哩 (bilibili.com) 辅助工具,可以替换播放器、推送通知并进行一些快捷操作
0 watchers
blog-comment
Python · 0 watchers
byte-of-python
《简明 Python 教程》V4.0c 2017 译本 /A Byte of Python 2017 Simplified Chinese Translation Edition
0 watchers
cdn-bucket
JavaScript · 0 watchers
cf-dk
这个项目是一个基于 Cloudflare Workers 的 Docker 镜像代理工具。它能够中转对 Docker 官方镜像仓库的请求,解决一些访问限制和加速访问的问题。
0 watchers
CF-Workers-SUB
这个是一个通过 Cloudflare Workers 搭建,将你任意节点与多个订阅汇聚成专属于你的订阅链接
TypeScript · 0 watchers
chatnext
v.2.9.13 纯享版
0 watchers
Chelper-jars
0 watchers
chisel
A fast TCP/UDP tunnel over HTTP
Ruby · 0 watchers
chromebrew
Package manager for Chrome OS
Ruby · 0 watchers
Chromebrew-early-package
Early package *.rb of chromebrew
0 watchers
ciku
0 watchers
CMWTAT_Digital_Edition
CloudMoe Windows 10 Activation Toolkit get digital license, the best open source Win 10 activator in GitHub. GitHub 上最棒的开源 Win10 数字权利(数字许可证)激活工具!
C++ · 0 watchers
Cpp_Primer_Answers
《C++ Primer》第五版中文版习题答案
0 watchers
cursoride2api
Cursor IDE API 逆向工程教程
0 watchers
cve-2024-6387-poc
a signal handler race condition in OpenSSH's server (sshd)
C++ · 0 watchers
DaFuWeng
大工小学期
C++ · 0 watchers
data-desensitization
无线网络安全课大作业
0 watchers
deep-research
Use any LLMs (Large Language Models) for Deep Research. Support SSE API and MCP server.
0 watchers
dk-cf
使用 Cloudflare Workers 或 Deno 加速 Docker Registry Mirrors
0 watchers
DNSLog
DNSLog 是一款监控 DNS 解析记录和 HTTP 访问记录的工具。
0 watchers
dockerfiles
Various Dockerfiles I use on the desktop and on servers.
TeX · 0 watchers
dut-letax
JavaScript · 0 watchers
faker3-backup
Python · 0 watchers
flask-study
0 watchers
footprint
:dolls:记录去过的足迹
0 watchers
genshin-helper
原神米游社自动签到
0 watchers
genshin-sign-helper
原神签到助手
JavaScript · 0 watchers
gfw-pac
科学上网。通过 gfwlist 和中国 IP 地址生成 PAC(Proxy auto-config) 文件。对存在于 gfwlist 的域名和解析出的 IP 在国外的域名使用代理。
0 watchers
gine-blog
Go · 0 watchers
godnslog
An exquisite dns&http log server for verify SSRF/XXE/RFI/RCE vulnerability
Python · 0 watchers
grok2api
Grok2API (Cloudflare Workers) one-click deploy with auto D1+KV provisioning
0 watchers
HanLP
中文分词 词性标注 命名实体识别 依存句法分析 成分句法分析 语义依存分析 语义角色标注 指代消解 风格转换 语义相似度 新词发现 关键词短语提取 自动摘要 文本分类聚类 拼音简繁转换 自然语言处理
JavaScript · 0 watchers
impress.js
It's a presentation framework based on the power of CSS3 transforms and transitions in modern browsers and inspired by the idea behind prezi.com.
Shell · 0 watchers
jd-self
JavaScript · 0 watchers
jd_yun
JavaScript · 0 watchers
LibreTV
一分钟搭建影视站,支持Vercel/Docker等部署方式
Jupyter Notebook · 0 watchers
Lihang
Statistical learning methods, 统计学习方法 [李航] 值得反复读. [笔记, 代码, notebook, 参考文献, Errata]
TypeScript · 0 watchers
lobe-chat
🤯 Lobe Chat - an open-source, modern-design AI chat framework. Supports Multi AI Providers( OpenAI / Claude 3 / Gemini / Ollama / DeepSeek / Qwen), Knowledge Base (file upload / knowledge management / RAG ), Multi-Modals (Plugins/Artifacts) and Thinking. One-click FREE deployment of your private ChatGPT/ Claude / DeepSeek application.
0 watchers
mc
desk
0 watchers
MoonTVPlus
MoonTVPlus 是基于 MoonTV v100 二次开发的增强版影视聚合播放器。它在原版基础上新增了外部播放器支持、视频超分、弹幕系统、评论抓取等实用功能,提供更强大的观影体验。
TypeScript · 0 watchers
NeatChat
基于 NextChat 深度重构,一个更优雅、更强大的 AI 对话解决方案
0 watchers
netease-cloud-api
网易云音乐升级API
Nim · 0 watchers
nitter-plus
Alternative Twitter front-end
0 watchers
nocode
The best way to write secure and reliable applications. Write nothing; deploy nowhere.
C · 0 watchers
NSA2018
0 watchers
nvjdc
Roff · 0 watchers
ollama-cpu
Minimal CPU-only Ollama Docker Image
TypeScript · 0 watchers
palm-netlify-proxy
0 watchers
pdd_3years
我在拼多多的三年,以及网站崩溃时候的日志文件
0 watchers
phoneme
0 watchers
Profiles
神机规则
JavaScript · 0 watchers
proxy-provider-converter
一个可以将 Clash 订阅转换成 Proxy Provider 和 External Group(Surge) 的工具
0 watchers
QLScript2
新QLScript
0 watchers
QQPlugin-macOS
0 watchers
QuantumultX
同步和更新大佬脚本库,更新懒人配置
0 watchers
README
README文件语法解读,即Github Flavored Markdown语法介绍
JavaScript · 0 watchers
reveal.js
The HTML Presentation Framework
HTML · 0 watchers
romantic_page
👫 程序员的表白
0 watchers
Rules
Stick Rules -- Quantumult X / Loon / ClashX Rules \ Quantumult back to CN Rules
0 watchers
self-collection
Vim script · 0 watchers
spf13-vim
The ultimate vim distribution
0 watchers
SS-Rule-Snippet
搜集、整理、维护 Surge / Quantumult / Shadowrocket / Surfboard / clash(X) 实用规则。
0 watchers
ssr
JavaScript · 0 watchers
Surge
0 watchers
Surge-setup
自用的 Surge 配置
Python · 0 watchers
telegram-get-remote-ip
Get IP address on other side audio call in Telegram.
0 watchers
TelegramSwift
Source code of Telegram for macos on Swift 5.0
Jupyter Notebook · 0 watchers
Tensorflow-test
use Google Colab
HTML · 0 watchers
tokens
0 watchers
Trojan
Trojan 一键安装脚本
0 watchers
ugly-avatar
0 watchers
Uptimer
A Powerful Serverless Uptime Monitoring & Status Page on Cloudflare's Edge Network
Shell · 0 watchers
v2ray
最好用的 V2Ray 一键安装脚本 & 管理脚本
0 watchers
whitepac
High performance PAC selecting Chinese websites to DIRECT and others to PROXY.
C · 0 watchers
wifidog
WifiDog - A captive portal suit WifiDog-全球最专业的无线热点解决方案
JavaScript · 0 watchers
WorkerVless2sub
这个是一个将 Cloudflare Workers - VLESS 搭配 自建优选域名 的 订阅生成器
CSS · 0 watchers
yao177.github.io
PHP · 0 watchers
you2php
(迫于压力,本项目停止维护,请尽快fork代码。1月1日之后删除项目)[免翻墙工具]A free and open-source youtube video proxy script [Written in PHP]
0 watchers
youtube-dl
Repository with the code of youtube-dl
0 watchers
yyx
Game data snapshot manager.
Python · 0 watchers
zhao
【编程随想】整理的《太子党关系网络》,专门揭露赵国的权贵
yao177

yao177

V2EX member #400132, joined on 2019-04-10 08:08:25 +08:00
1 G 56 S 4 B
Per yao177's settings, the topics list is only visible after you sign in
Deals info, including closed deals, is not hidden
yao177's recent replies
root 之后可以用 surfing magisk 插件上网,比传统 vpn 软件更省电
运气+1
为了解决这个问题,我们可以采用回溯的方法来找到所有符合条件的组合。具体步骤如下:

1. **排序**:首先对数组 `candidates` 进行排序,这有助于优化搜索过程并减少重复。
2. **回溯**:通过递归函数遍历所有可能的组合,并在每个步骤中进行条件检查。
3. **条件检查**:
- 确保当前组合的和大于 `target`。
- 对于当前组合中的每个元素,移除该元素后的和应小于 `target`。
- 对于当前组合中的每个元素,移除该元素后的和应小于或等于 `target - target1`。

下面是一个 Python 实现的例子:

```python
def find_combinations(candidates, target, target1):
candidates.sort() # 排序以优化搜索
results = []

def backtrack(comb, start, current_sum):
# 检查当前组合是否满足条件
if current_sum > target:
# 检查移除任意一个元素后是否满足所有条件
all_valid = True
for i in range(len(comb)):
new_sum = current_sum - comb[i]
if new_sum < target and new_sum <= target - target1:
continue
else:
all_valid = False
break

if all_valid:
results.append(comb.copy())
return

# 继续添加元素到组合中
for i in range(start, len(candidates)):
# 为了避免重复组合,跳过相同的元素
if i > start and candidates[i] == candidates[i - 1]:
continue
comb.append(candidates[i])
backtrack(comb, i + 1, current_sum + candidates[i])
comb.pop() # 回溯

backtrack([], 0, 0)
return results

# 示例输入
candidates = [10, 20, 20, 30]
target = 45
target1 = 10
# 函数调用
output = find_combinations(candidates, target, target1)
print(output)
```

这个代码首先定义了一个回溯函数 `backtrack`,该函数尝试在 `candidates` 中找到所有符合条件的组合。我们使用 `comb` 来存储当前的组合,使用 `current_sum` 来跟踪当前组合的总和。如果当前组合满足所有条件,我们将其添加到结果列表 `results` 中。我们还使用了一些优化措施,比如跳过重复元素,以减少不必要的计算。

这个算法的时间复杂度较高,对于大数据集可能不够高效,因为它需要检查所有可能的组合。不过,对于小到中等规模的数据集,这个方法应该是可行的。
强烈推荐 kinto ( https://github.com/rbreaves/kinto),基于 autohotkey 的二开,完美模拟各种快捷键
Nov 29, 2023
Replied to a topic by zzerd 推广 自家赣南脐橙抽奖,华农家同县发出
下了一单,期待
支持一下!
我是装了日版 lol 玩云顶
About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   2530 Online   Highest 6679   ·     Select Language
创意工作者们的社区
World is powered by solitude
VERSION: 3.9.8.5 · 25ms · UTC 05:43 · PVG 13:43 · LAX 22:43 · JFK 01:43
♥ Do have faith in what you're doing.