摘要: JZOJ5787 轨道 题目大意 给出 \(n\),\(m\)。 需要构造一个长度为 \(n\) 的正整数序列 \(A\),其中 \(A_i \in [1,m]\)。 给出一个正整数 \(K\)。你的序列需要使的存在一个正整数 \(V\),使得 \(V \cdot K = \prod A_i\) 且 阅读全文
posted @ 2024-06-07 10:48 DeepSeaSpray 阅读(2) 评论(0) 推荐(0) 编辑
摘要: JZOJ5787 轨道 的代码 #include<bits/stdc++.h> using namespace std; const int maxn=30001; const int maxm=3200; const int maxv=1e7; const int mod=10007; int n 阅读全文
posted @ 2024-06-07 10:47 DeepSeaSpray 阅读(3) 评论(0) 推荐(0) 编辑
摘要: CF1919E Counting Prefixes Rating:2600 题目大意 有一个由 -1 与 1 构成的数列 \(A\)。告诉你它的前缀和升序排序的数列 \(P\)。求有多少个满足方案的数列 \(A\)。 多组数据,其中 \(A\) 的长度 \(n\) 有。 \(\sum n \leq 阅读全文
posted @ 2024-06-07 09:37 DeepSeaSpray 阅读(2) 评论(0) 推荐(0) 编辑