题解列表

筛选

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

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

c语言代码解决问题

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

[递归实现]利润计算

摘要:解题思路: 思路较为简单,读者简单阅读即可理解注意事项: 注意递归的结束条件参考代码:#include <stdio.h> #define N 100000 double getBonus……

2979-确定进制

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

2981- 二进制分类

摘要:解题思路:注意事项:参考代码://定义全局变量 int num1=0; int num2=0; //分别A类数和B类数 void test02(int arr[],int len){ ……

2864:-单词替换

摘要:解题思路:采用最传统的思想即可,先分割单词,再查找替换单词。注意事项:参考代码:struct Test{ char s[101]; }; void test(char *s,char *a……

[编程入门]阶乘求和

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

2845: 求10000以内n的阶乘

摘要:解题思路:采用高精度算法解决问题注意事项:参考代码:void test(int n){ //采用高精度算法实现 int arr[1000000]={0}; int i,j; int l……

2943-Vigenère密码

摘要:解题思路:寻找规律注意事项:参考代码:void test(char *s1,char *s2,int m,int n){ static char s[1001]; int i; for(i……