Jeanny
寂兮,寥兮,独立不改,周行而不殆
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页
摘要: https://www.luogu.com.cn/problem/AT_abc128_d ``` #include using namespace std; int n, m, g[1005][1005], fl, vis[1005], col[1005]; void dfs(int u) { // 阅读全文
posted @ 2023-08-06 18:43 Jeanny 阅读(61) 评论(0) 推荐(0)
摘要: 枚举颜色, 枚举第几个该颜色,l、r,计算l-r的最小交换次数,每两个的交换次数是:p[i][ra] - p[i][la] - 1 - (ra-la-1); wrong: ``` #include using namespace std; int n, m, num[30], p[30][55], 阅读全文
posted @ 2023-08-05 16:50 Jeanny 阅读(18) 评论(0) 推荐(0)
摘要: Atcoder-abc123_d AT 小卖部从下学期开始售卖带有数字形状的蛋糕,$X$,$Y$ 和 $Z$ 种蛋糕分别带有 $1$ 形,$2$ 形和 $3$ 形蜡烛,而且每个蛋糕都有美味值,如下所示: - 带有 $1$ 形蜡烛的美味值有: $A_1,A_2,\cdots,A_X$ - 带有 $2$ 阅读全文
posted @ 2023-08-02 20:22 Jeanny 阅读(74) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-05-30 07:21 Jeanny 阅读(0) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-05-20 11:15 Jeanny 阅读(8) 评论(0) 推荐(0)
摘要: ``` #include using namespace std; define N 1000000 int b[1000005], n, cnt; int main(){ scanf("%d",&n); for(int i = 2; i*i using namespace std; int n,m 阅读全文
posted @ 2023-05-13 10:24 Jeanny 阅读(20) 评论(0) 推荐(0)
摘要: //木桶原理:桶能装的水的多少取决于最短的木板。 #include<iostream> #include<cstdio> #include<stack> #include<cstring> #include<queue> using namespace std; int n,m; const int 阅读全文
posted @ 2023-05-12 22:01 Jeanny 阅读(34) 评论(0) 推荐(0)
摘要: https://oi-wiki.org/lang/csl/associative-container/ 1.基本操作 2.自定义比较方式 P5250 【深基17.例5】木材仓库 set/ multiset #include<iostream> #include<set> using namespac 阅读全文
posted @ 2023-05-09 21:36 Jeanny 阅读(52) 评论(0) 推荐(0)
该文被密码保护。 阅读全文
posted @ 2023-04-17 17:23 Jeanny 阅读(3) 评论(0) 推荐(0)
摘要: [春季测试 2023] 幂次 题目描述 小 Ω 在小学数学课上学到了“幂次”的概念:$\forall a, b \in \N^+$,定义 $a^b$ 为 $b$ 个 $a$ 相乘。 她很好奇有多少正整数可以被表示为上述 $a^b$ 的形式?由于所有正整数 $m \in N^+$ 总是可以被表示为 $ 阅读全文
posted @ 2023-03-25 18:46 Jeanny 阅读(44) 评论(0) 推荐(0)
上一页 1 ··· 3 4 5 6 7 8 9 10 11 ··· 19 下一页