题解列表

筛选

2979-确定进制

摘要:解题思路:全部转变为十进制数注意事项:参考代码:int test(int m,int n){ int sum=0; int i=0; while(m){ sum += (m%10)*……

选择排序-----

摘要:解题思路:1.定义数组2.输入数据并判断输入了的元素个数3.调用选择排序函数注意事项:元素最多输入十个参考代码:……

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){    int a[20][20], n, i, j, sum[40] = {0}, k = 0,l=0;    ……

题目 1400: 教学楼的楼梯题解

摘要:1.解题思路第n层楼可以从第n-1层楼迈一步或从第n-2层楼迈两步,所以有f(n)=f(n-1)+f(n-2)种走法,用数组f表示,也可以用递推,但是时间超限了。2.参考代码2.1.数组法#inclu……

STL& set[STL训练]{A} + {B}

摘要:# 使用STL库的`set`容器 > 自带去重和排序的功能,就不需要调用排序函数了 ```c++ #include #include #include #include usi……

c语言代码解决问题

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

1013-Sn的公式求和

摘要:解题思路:采用高精度加法解决本题。注意事项:参考代码:int arr[1000]={0}; int main(){ int n; int i,len,j; len=0; scanf(……

小白的想法

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

c语言代码解决问题

摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>struct pointer{    double x;    double y;};int main(……

谢谢各位的哥

摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){   int sum=0;   for(int i=1;i<=1000……