题解列表

筛选

扫雷游戏Minesweeper

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> #include<algorithm> using namespace std; con……

最适合新手的解法

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int k;scanf("%d",&k);if(k<=2){ printf("1");}else{ int a[……

迭代法求平方根

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    float X;    scanf("%f", &X);    float x1, x2;    x1 =……

动态规划的一般解题方法

摘要:解题思路:注意事项:参考代码:#include<iostream> using namespace std; int arr[100][100] ={0}; int dp[100][100]……

主用分支结构

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