题解列表

筛选

直接理解(Python)

摘要:a,b=map(int,input().split())def sushu(N):    for i in range(2,N):        if N%i==0:            retur……

直接判断(Python)

摘要:N=int(input())while N:    t=int(input())    if t % 2 == 0:        print('even')    else:    ……

简单易懂还是STL香

摘要:#include<bits/stdc++.h> using namespace std; //写一个仿函数 class MyPrint { public:  voi……

DP和最大子序列DP

摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){    int n;    int dp[100001];    int……

(C++代码)简单深搜---慢的一批

//C++#includeusingnamespacestd;intm;intpeople[10];//记录小朋友的money数boolvis[10];//标记当前小朋友是否买完票intdfs(intindex,intoneCount){//此时之前为一种有效排法if(index==m)return1

编写题解 1861: 程序员爬楼梯

摘要:经典动态规划:考虑最后一步f(n)=f(n-1)+f(n-3);参考代码:#include <stdio.h>#include <stdlib.h>int pa(int n){    if(n==1|……