文章分类 - 洛谷
摘要:原题链接 这道题目的意思是有多少不同焦点数的方案数。 AC代码: #include<iostream> using namespace std; const int N = 1e6; bool p[N]; int ans; void dfs(int n, int m) { if (!n) { if
阅读全文
摘要:题目链接 #include<bits/stdc++.h> using namespace std; int main() { int n, m; string s; cin >> n >> s >> m; int res = 1; int ans = 0; for (int i = s.size()
阅读全文