题解列表

筛选

记忆化搜索博弈树

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int n,len;unordered_map<string,int> vis;//……

字符個數統計c語言

摘要:解题思路:需要調用函數,而且此函數還需給出4個統計值,故需要使用指針,函數只能返回0個或一個值注意事项:参考代码:#include<stdio.h> void cnt_fun(char total[]……

特殊回文数python

摘要:解题思路:注意事项:参考代码:def hui(n):    if str(n)==str(n)[::-1]:        return 1    else:        return 0n = i……

第二大整数——python

摘要:解题思路:注意事项:参考代码:L = list(map(int,input().split()))L1 = []for i in L:    if i == 0:        break    el……

编写题解 2912: 最长平台

摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(){ int n; scanf("%d",&n); int a[n]; for(int i=0;i<n;i++){ ……

检查一个数是否为质数

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;bool is_prime(int x){    if(x < 2)return false……

python的测试数据有问题(AC蓝桥官网)

摘要:解题思路:注意事项:在本地跑出来的结果和测评的结果数据不一样,此题py数据处理有问题参考代码:t=int(input())byte=0for _ in range(t):    s=input()  ……

迭代解约瑟夫环

摘要:解题思路:此题采用迭代来写,相比于递归来说,使用迭代速度更快,空间浪费更少注意事项:时间复杂度为O(n),是递归的最终简化简直没有弱点,又快有不浪费空间参考代码:#include<stdio.h>in……