摘要: 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 阅读全文
posted @ 2020-07-14 23:22 TFLSNOI 阅读(230) 评论(0) 推荐(0) 编辑
摘要: 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 阅读全文
posted @ 2020-07-14 17:09 TFLSNOI 阅读(206) 评论(0) 推荐(0) 编辑
摘要: 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二 阅读全文
posted @ 2020-07-14 14:53 TFLSNOI 阅读(166) 评论(0) 推荐(0) 编辑
摘要: 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, 阅读全文
posted @ 2020-07-14 10:57 TFLSNOI 阅读(330) 评论(0) 推荐(0) 编辑