题解列表

筛选

c语言代码解决问题

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int main(){ char str[61],str1[61]; gets(str); str[……

最简单的思路

摘要:#include<stdio.h> int main(){ char c; int sum = 0; while(scanf("%c",&c)){    ……

题目 1303: 统计数字题解

摘要:参考代码:#include<iostream> #include<algorithm> using namespace std; int a[500001],n,ans=1; int main……

[STL训练]sort练习

#STLsort##头文件```c++#include```#完整代码```c++#include#include#includeintmain(){intn,m;std::cin>>n>>m;int*nums=newint[n];for(inti=0;i>nums[

C++函数重载练习

摘要:# C++ 函数重载 > 重载`Compare`函数 ```c++ int Compare(int a, int b) { return a > b ? a : b; } int……

玉龙学长买雪糕C++实现

##迭代```c++#includeusingnamespacestd;intfib(intn){ints=0,res=1;while(n--){s+=res;res=res*2+1;}returns;}intmain(){intn;cin>>n;cout