题解列表

筛选

小白也能看懂

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ int i,n; scanf("%d",&n); char arr[5000……

和采药一样

摘要:#include <stdio.h>int max(int a,int b){    if(a>b)    {        return a;    }else{        return b; ……

暴力骗分+dfs剪叶+动态规划

摘要:解题思路:注意事项:参考代码://李白打酒加强版 #include <stdio.h>#include <stdlib.h>#include <string.h>#include <math.h>#d……

题解 1234: 检查一个数是否为质数

摘要:解题思路:循环+判断注意事项:注意事项:别抄我的,抄我的人我诅咒他电脑10秒关机参考代码:#include<bits/stdc++.h>using namespace std;int main(){s……

暴力搜索(小白勿喷)

摘要:解题思路: 暴力不用带脑子,知道临界条件后,其他的都交给计算机就行注意事项:参考代码:#include <stdio.h>int n[10010]={0};int count;int max=0,mi……

题解 2773: 计算线段长度

C语言中pow函数的声明:doublepow(doublex,doubley)pow(x,y):x的y次幂```c#include#includeintmain(){doublex_a,y_a,x_b,y_b;scanf("%lf%lf%lf%lf",

数组插入处理

摘要:解题思路:我并没有采用将比较的那个数插入数组中进行比较然后排序输出(因为不会,哈哈哈),而是直接进行比较然后输出注意事项:需要单独输出比较的那个数参考代码:  int main(){        i……

比较简单的一种方法

摘要:解题思路:先看题目,找出规律注意事项:参考代码:#include<stdio.h>#include<math.h>int main(){ int n,i,cnt=0; long int a[3000]……