题解列表

筛选

dfs搜索!!!

摘要:```cpp #include using namespace std; const int L = 12; int n; char arr[L][L]; bool lie[L],……

模拟吧!!!

摘要:```cpp #include using namespace std; bool check_zhi(int n){ if(n < 2)return false; fo……

编写题解 2036: 散列存储

摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split()) ls=[] for i in range(m):     ls.append(list(map(int,i……

蓝桥杯算法提高VIP-分分钟的碎碎念

摘要:解题思路:读懂题目很重要,题目的意思是form[i]中保存的是念头的来源,假如form[i]中的是5,那么他的念头就进入form[5],form[5],保存的是0,那因果链就断了,因为0是没有来源的注……

充分利用有序

摘要:解题思路:有序的条件是解题的主线注意事项:参考代码:#include<stdio.h>int main(){ int a, i = 0, m = 0, k = 0, t = 0; scanf("%d"……

编写题解 2052: 整除问题

摘要:解题思路:注意事项:参考代码:n=int(input()) s = 0 for i in range(2,n//2+1):     if n%i==0:         s += 1  pr……