摘要: ​【题目来源】https://www.luogu.com.cn/problem/P3378【题目描述】给定一个数列,初始为空,请支持下面三种操作:1. 给定一个整数 x,请将 x 加入到数列中。2. 输出数列中最小的数。3. 删除数列中最小的数(如果有多个数最小,只删除 1 个)。【输入格式】第一行 阅读全文
posted @ 2026-02-19 22:53 Triwa 阅读(6) 评论(0) 推荐(0)
摘要: ​【题目来源】https://www.luogu.com.cn/problem/P10720https://oj.czos.cn/p/3866【题目描述】小杨认为他的幸运数字应该恰好有两种不同的质因子,例如,12=2×2×3 的质因子有 2,3,恰好为两种不同的质因子,因此 12 是幸运数字,而 3 阅读全文
posted @ 2026-02-19 12:17 Triwa 阅读(10) 评论(0) 推荐(0)
摘要: 【Find the position of the first element that >=target】 //Find the position of the first element that >=target int ffir(vector<int>& v,int target) { au 阅读全文
posted @ 2026-02-19 07:29 Triwa 阅读(5) 评论(0) 推荐(0)