题解列表

筛选

最简介易懂示例!!!

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#define N 200int main(){    int n,i,num;    int arr[N];    while(sca……

自然数的拆分(dfs)

摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstring> using namespace std; const int N=10010; int ……

运行时间过长(半天跑不出数)的看过来!!!

摘要:解题思路:        在CPU频率中,1GHz 就是每秒10亿次运算,你可以算一算自己CPU运算速度。        但是你若在写代码的过程中——比如说这道题——使用了三重嵌套for循环,那么就是……

C++ 字符串分类统计

摘要: #include //这是个非常万能的头文件 using namespace std; int main() { int y = 0,s = 0,k = 0,q = 0;?//需……

比较简单理解的方法

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

牛吃牧草chichichi

摘要:牛吃牧草 牧草每天都在匀速生长,牧场可供15头牛吃20天,或20头牛吃10天,那么牧场每天新生的草供几头牛吃1天?解题思路:牛cattle 草grass 天day假设1c吃1g/1d;15c=20d*……