标题: 我被codex阴阳了么?
作者: #𝒮𝓅𝒶𝓇𝓀𝓈
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1168097
时间: 2025-11-14 10:12:09
摘要:
作者: #𝒮𝓅𝒶𝓇𝓀𝓈
板块: #搞七捻三
编号:
1168097帖子: https://linux.do/t/topic/1168097
时间: 2025-11-14 10:12:09
摘要:
刚开使用codex cli,不能执行一些命令是咋回事,不能启动前端项目,老是叫我自己去执行,claude code就没问题
标题: Leetcode每日一题 —— 2536. 子矩阵元素加 1
作者: #魔法师
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1168101
时间: 2025-11-14 10:12:25
摘要:
作者: #魔法师
板块: #开发调优
编号:
1168101帖子: https://linux.do/t/topic/1168101
时间: 2025-11-14 10:12:25
摘要:
2536. 子矩阵元素加 1
思路
一开始没什么思路,先写个模拟试试水。
代码
public int[][] rangeAddQueries(int n, int[][] queries) {
int[][] mat = new int[n][n];
for (int[] query : queries) {
int top = query[0];
int left = query[1];
int bottom = query[2];
int right = query[3];
for (int x = top; x <= bottom; x++) {
for (int y = left; y <= right; y++) {
mat[x][y]++;
}
}
}
return mat;
}
时间复杂度:O(kn^2)
空间复杂度:O(n^2)
优化思路
模拟居然过了,理所当然是最慢那批。整体看没想到什么好思路,按行或者列拆分的话好像可以,把每行视作一组差分数组可以把queries的循环与n^2循环分离。
代码
public int[][] rangeAddQueries(int n, int[][] queries) {
int[][] mat = new int[n][n];
for (int[] query : queries) {
int top = query[0];
int left = query[1];
int bottom = query[2];
int right = query[3];
for (int i = top; i <= bottom; i++){
mat[i][left]++;
if (right < n - 1)
mat[i][right + 1]--;
}
}
for (int i = 0; i < n; i++) {
for (int j = 1; j < n; j++) {
mat[i][j] += mat[i][j - 1];
}
}
return mat;
}
时间复杂度:O(kn+n^2)
空间复杂度:O(n^2)
优化思路
在写优化的过程中,感觉行和列都可以拆分,这样时间复杂度中的kn就变成了k。关键点在于,因为计算了两个方向的偏差,所以有一部分重叠了需要减去(如果f(1,0)会累加f(0,0)的偏差,f(0,1)也会累加f(0,0)的偏差,f(1,1)=f(1,0)+f(0,1)-f(0,0))。
代码
public int[][] rangeAddQueries(int n, int[][] queries) {
int[][] mat = new int[n][n];
for (int[] query : queries) {
int top = query[0];
int left = query[1];
int bottom = query[2];
int right = query[3];
mat[top][left]++;
if (right < n - 1)
mat[top][right + 1]--;
if (bottom < n - 1)
mat[bottom + 1][left]--;
if (bottom < n - 1 && right < n - 1)
mat[bottom + 1][right + 1]++;
}
for (int i = 0; i < n; i++) {
for (int j = 0; j < n; j++) {
if (i > 0)
mat[i][j] += mat[i - 1][j];
if (j > 0)
mat[i][j] += mat[i][j - 1];
if (i > 0 && j > 0)
mat[i][j] -= mat[i - 1][j - 1];
}
}
return mat;
}
时间复杂度:O(k+n^2)
空间复杂度:O(n^2)
标题: 大疆发布新款Action6
作者: #Headmaster
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1168102
时间: 2025-11-14 10:12:29
摘要:
作者: #Headmaster
板块: #搞七捻三
编号:
1168102帖子: https://linux.do/t/topic/1168102
时间: 2025-11-14 10:12:29
摘要:
上个月在狗东刚买了pocket3,还没到30天,想退了换action6,佬们有什么建议吗
标题: 免费的象棋分析
作者: #Zhenhuamo
板块: #资源荟萃
编号:
帖子: https://linux.do/t/topic/1168103
时间: 2025-11-14 10:12:39
摘要:
作者: #Zhenhuamo
板块: #资源荟萃
编号:
1168103帖子: https://linux.do/t/topic/1168103
时间: 2025-11-14 10:12:39
摘要:
大家好!我是一名国际象棋爱好者,也是一名程序员。
在平时下棋和复盘的过程中,我一直觉得需要一个简洁、快速并且纯粹免费的分析工具。虽然现在有很多强大的网站和软件,但或多或少都有一些广告、付费墙或者复杂的功能,对于只想快速复盘的我来说,总觉得不够方便。
因此,我利用自己的业余时间,从零开始开发了一个全新的网站,想把它分享给所有和我一样热爱国际象棋的朋友们。
网站地址:https://chess-analysis.org/
我开发这个工具的初衷很简单,就是希望它能成为一个好用、纯粹的帮手。它有以下几个特点:
完全免费,并且没有任何广告:我希望用户能专注于棋局分析本身,不被任何干扰打断。这是我做这个项目的核心原则。
简洁易用的界面:您只需要粘贴棋局的 PGN 或者 FEN 串,就可以立刻获得引擎分析结果,没有多余的步骤。
强大的云端引擎:网站后端使用了 Stockfish 引擎进行分析,帮助您快速找到对局中的关键点、错着和妙手。
这个网站目前还很年轻,肯定还有很多可以改进的地方。我非常真诚地邀请大家来试用一下,并提出宝贵的反馈和建议。无论是“这里不好用”,还是“如果能增加 XX 功能就好了”,或者是任何您发现的小 bug,都请告诉我。
你们的每一个建议,都是我继续完善这个网站的最大动力。
标题: 用 AI 大模型判断擦边:抖音直播狙击新型低俗诱导打赏,8.8 万人次被处罚
作者: #𝓵𝓮𝔃𝓲𝓼𝓱𝓮𝓷
板块: #前沿快讯
编号:
帖子: https://linux.do/t/topic/1168107
时间: 2025-11-14 10:12:58
摘要:
作者: #𝓵𝓮𝔃𝓲𝓼𝓱𝓮𝓷
板块: #前沿快讯
编号:
1168107帖子: https://linux.do/t/topic/1168107
时间: 2025-11-14 10:12:58
摘要:
用 AI 大模型判断擦边:抖音直播狙击新型低俗诱导打赏,8.8 万人次被处罚 - IT之家
标题: 市面上的科研无人机有推荐的吗?
作者: #fangyuanming
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1168111
时间: 2025-11-14 10:13:12
摘要:
作者: #fangyuanming
板块: #开发调优
编号:
1168111帖子: https://linux.do/t/topic/1168111
时间: 2025-11-14 10:13:12
摘要:
目前了解的有阿木实验室
标题: codex 更新gpt-5.1了
作者: #jun
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1168143
时间: 2025-11-14 10:17:33
摘要:
作者: #jun
板块: #搞七捻三
编号:
1168143帖子: https://linux.do/t/topic/1168143
时间: 2025-11-14 10:17:33
摘要:
刚刚打开软件发现更新了,不知道更新了哪些性能
标题: 一行命令,扒掉 996 项目的底裤
作者: #小但
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1168155
时间: 2025-11-14 10:19:41
摘要:
作者: #小但
板块: #搞七捻三
编号:
1168155帖子: https://linux.do/t/topic/1168155
时间: 2025-11-14 10:19:41
摘要:
(被举报说AIGC未截图,问题这也不是AIGC啊管理员佬)
// 以下是原文
小红书搬来的,佬们可以试试
简单省流版:命令是:npx code996
一行命令,扒掉 996 项目的底裤
很多程序员在面试时会关注团队的加班情况。
面试时,面试官:“我们偶尔会加班,平时不怎么加的” 入职一个月后发现,好家伙,每天晚上 10 点都在改 BUG… [扶墙 R]
为了解决面试官骗人的问题,我开发了一个基于 Node.js 的命令行工具:code996。 它可以帮助你快速了解新团队工作的时间模式,识别潜在的加班文化。
最方便的是,你无需安装,只需要在 Git 项目的根目录运行一行命令:npx code996
就可以扒出这个项目的 “加班底裤”(示例结果见图 1 - 5)
它是怎么工作的呢?
:white_check_mark: 只看数据:通过 git-log 查询项目的 commit 信息
:brain: 智能识别:采用 “分位数 + 拐点” 算法。智能推算项目真实的平均上班和下班时间,以及它的加班情况。
:bar_chart: 量化指数:它会根据加班比例构建一个简单粗暴的 “996 指数”。0 分代表不加班,100 分就是标准 996。
:locked: 绝对安全: 最关键的是,所有分析都在你本地进行!不会泄露隐私!
值得一提的是,这个项目是 2.0 版本,之前的 1.0 版本是 shell 脚本,在开发时还没有 AI,我当时花了四个月,功能还很简陋 [捂脸 R]
但在 AI 的加持下,本次的 2.0 版本从构思到开发完成,总共只花了三天时间!
开发用的 AI 是 KwaiKAT 的 KAT-Coder-Pro V1,全程 Vibe Coding,没有用到复杂的提示词工程,不过必要的 docs 和思路还是要和 AI 对齐的。
我把和 AI 对齐的思路,上下文文档和代码全部都开源了,大家可以自行参考。
欢迎大家体验和提出建议 [doge]
标题: 就在此揭示你我的命运吧:enraged_face:
作者: #李白
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1168158
时间: 2025-11-14 10:20:14
摘要:
作者: #李白
板块: #搞七捻三
编号:
1168158帖子: https://linux.do/t/topic/1168158
时间: 2025-11-14 10:20:14
摘要:
03
若敢来犯,必叫你大败而归
标题: 哪位大佬来试试GPT5.1 system prompt
作者: #Huluma
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1168166
时间: 2025-11-14 10:22:10
摘要:
作者: #Huluma
板块: #搞七捻三
编号:
1168166帖子: https://linux.do/t/topic/1168166
时间: 2025-11-14 10:22:10
摘要:
ChatGPT 5.1 System Prompt LEAKED!!!
--------------------------------------------------------
You are ChatGPT, a large language model trained by OpenAI, based on GPT 5.1.
Knowledge cutoff: 2024-06
Current date: 2025-11-14
Tools
Tools are grouped by namespace where each namespace has one or more tools defined. By default, the input for each tool call is a JSON object. If the tool schema has the word ‘FREEFORM’ input type, you should strictly follow the function description and instructions for the input format. It should not be JSON unless explicitly instructed by the function description or system/developer instructions.
Namespace: web
Target channel: analysis
Description
Use this web tool to access information on the web.
Web information from this tool helps you produce accurate, up-to-date, comprehensive, and trustworthy responses.
Use the web tool when the user is requesting factual, accurate, recent, time-sensitive, verifiable, and trustworthy information.
Specifically, you should call this tool if the user is requesting any of the following types of information:
Information that are fresh, current, or time-sensitive.
Predictions based on current conditions in markets, sports, politics, and technologies.
Information that are specific and should be accurate and trustworthy.
Information that are could change over time and must be verified by web searches at the time of the request.
Information in domains that require fresh and accurate data, including local, travel, shopping, and product searches.
Data retrieval tasks, such as accessing specific external websites, pages, documents, etc.
Asking about or referencing given URLs.
Requests for information about contemporary Public Figures, Companies, Products, Services, Places, etc.
You MUST use the web to fact check for current or recent government office-holders, policies, election results, financial numbers, legal matters; these are high-stake and must be verified. But do NOT use web if such information is historical or not contemporary.
Do NOT call web for health and medical related requests, unless recent information or specific dosage is required.
Requests for online resources like videos, online tools, courses, reference materials, social updates, etc. But do NOT call the web tool just to get images.
Navigational queries, where the user is looking for a specific web site or page, which are usually just short names of websites or entities (e.g. “instagram”, “openai”, “white house”).
You MUST call this tool if the user explicitly requests to search, browse, or get information from the web. You MUST NOT call this tool if the request does not meet any of the “should call” criteria above. For example:
Greetings, pleasantries, chit-chating, etc.
Requests to rewrite, summarize, or translate text that is already provided.
Explaining the meaning of words, terms, general concepts, theories, game rules, how things work, etc, that do not require specific numbers or fresh information.
Questions about historical or classic works, literature, books, movies, songs, recipes, etc.
Questions about yourself, your own opinions, your analysis, etc.
Requests for other tools instead of web. For example you should not search for images when the user requests to generate an image.
Requests to do arithmetic calculations and solve math problems.
You must NOT call this tool if the user explicitly asks you NOT to search or get information from the web. Again, you should only call the web tool if it’s clearly needed If you are not confident that the web tool should be called according to the guidelines above, then do NOT call it. ONLY use the web tool if it’s clearly needed
Examples of different commands in this tool:
search_query: {“search_query”: [{“q”: “What is the capital of France?”}, {“q”: “What is the capital of belgium?”}]}. Arguments “recency” and “domain” are optional and you shoul
标题: cursor 筹集了 23 亿美元的 D 轮融资,融资完会复燃吗,二月红前来求号
作者: #histore
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1168168
时间: 2025-11-14 10:23:31
摘要:
作者: #histore
板块: #搞七捻三
编号:
1168168帖子: https://linux.do/t/topic/1168168
时间: 2025-11-14 10:23:31
摘要:
除了 cursor 还有没有好用的替代品,cc 属于 cli 感觉写代码不舒服
cursor 筹集了 23 亿美元的 D 轮融资,融资完会复燃吗,二月红前来求号
标题: spokenly接入doubao和qwen asr
作者: #爱吃桃子的土狗一号
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1168169
时间: 2025-11-14 10:23:59
摘要:
作者: #爱吃桃子的土狗一号
板块: #开发调优
编号:
1168169帖子: https://linux.do/t/topic/1168169
时间: 2025-11-14 10:23:59
摘要:
昨天晚上研究了一下spokenly语音输入法如何接入豆包和千问。目前版本的Spokenly里面,只支持volcengine API 和opeani API,但是豆包API无论怎么样都接入不了,所以看到了这位佬的帖子。
【新增百炼官方调用】兼容 OpenAI 端口的 Qwen3-ASR,支持 Spokenly,免费使用
开发调优
20250912172237 引入重要更新
为了让更多佬友体验到 Qwen3-ASR + Spokenly,目前帖子将不设置等级权限。
免费使用的两个方法:
【路径一】通过阿里云百炼官方赠额使用
将下方的代码粘贴到 Cloudflare Worker 中,点击部署
访问百炼控制台 https://bailian.console.aliyun.com/ ,新建 API Key,将Key粘贴到 …
仔细一想这不就是用转openai格式的数据向qwen和豆包api发送吗,我的需求只是本地使用,只需要把这位佬的js代码转成本地的,然后在装一个pm2启动一个nodejs服务器就可以用qwen了。如果想用doubao的语音也只需要把豆包API文档喂给ai就可以。
启动服务后内存占用也不大,豆包识别的也挺快的
标题: 推荐一款2500-3000的安卓手机?
作者: #晚安托丽娜
板块: #搞七捻三
编号:
帖子: https://linux.do/t/topic/1168173
时间: 2025-11-14 10:25:07
摘要:
作者: #晚安托丽娜
板块: #搞七捻三
编号:
1168173帖子: https://linux.do/t/topic/1168173
时间: 2025-11-14 10:25:07
摘要:
推荐一款2500-3000的安卓手机?
给我兄弟买的,他是国服马超+小国标猪八戒,实力在巅峰赛2200分左右
标题: CatPaw windows版本上了
作者: #wren
板块: #资源荟萃
编号:
帖子: https://linux.do/t/topic/1168174
时间: 2025-11-14 10:25:14
摘要:
作者: #wren
板块: #资源荟萃
编号:
1168174帖子: https://linux.do/t/topic/1168174
时间: 2025-11-14 10:25:14
摘要:
群組公告
Windows版本已上线,欢迎前往 CatPaw官网下载:https://catpaw.meituan.com/
专属邀请码:ZJAW83
来自catpaw群消息。
标题: api-proxy.me/openrouter 用不了?
作者: #Jerome
板块: #开发调优
编号:
帖子: https://linux.do/t/topic/1168183
时间: 2025-11-14 10:28:25
摘要:
作者: #Jerome
板块: #开发调优
编号:
1168183帖子: https://linux.do/t/topic/1168183
时间: 2025-11-14 10:28:25
摘要:
api-proxy.me | 502: Bad gateway
用不了openrouter 有沒有其他可以用到openrouter的proxy