摘要:
https://www.luogu.com.cn/problem/P1036 方法一:递归回溯+素数判断 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n, k, ans=0; 4 int x[25], a[25]; 5 bool vi 阅读全文
摘要:
https://www.luogu.com.cn/problem/P1618 1 #include<bits/stdc++.h> 2 using namespace std; 3 int a, b, c; 4 int dic[10]; //用于判断是否1-9每个数都出现过 5 bool check1 阅读全文
摘要:
https://www.luogu.com.cn/problem/P2089 1 #include<bits/stdc++.h> 2 using namespace std; 3 int n, cnt=0, ans[60000][10]; 4 //最多情况是3^10= 59049,所以开60000二 阅读全文
摘要:
https://www.luogu.com.cn/problem/P2241 方法一:暴力(30分)分少总比0分强,其他测试点都显示TLE 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 int main() 5 { 6 int n, m, 阅读全文