题解列表

筛选

光头强购买新家具

摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;typedef long long ll;int n,m;int a[10005];……

最简介易懂示例!!!

摘要:解题思路:注意事项:参考代码:#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……