题解列表

筛选

1266: 马拦过河卒

摘要:```cpp #include using namespace std; int dp[17][17]; bool vis[17][17]; int dx[8]={-2,-2,-1,-1,1……
优质题解

1259: 送分题素数

摘要:#####**素数的概念:** 素数又称质数(prime number),有无限个。 一个大于1的自然数,除了1和它本身外, #####**不能被其他自然数(包括其它质数(素数))整除** ……

记忆化搜索

摘要:解题思路:自顶而下搜索最小值注意事项:记录答案防止时间爆炸参考代码:#include<bits/stdc++.h>#define endl &#39;\n&#39;using namespace st……

编写题解 3008: 买笔,

摘要:解题思路:注意事项:只因你太美参考代码:#include <iostream>using namespace std;int main(int argc, char** argv) {int x,y,……

2790: 分段函数(c++)

摘要:解题思路:注意事项:保留3位浮点小数参考代码:#include<bits/stdc++.h>using namespace std;int main(){    float x;    cin>>x;……

1027 题解

摘要:参考代码:#include<iostream> using namespace std; int add(int a,int b,int c) { if(a>b) { while(a%b!……