STL& set[STL训练]{A} + {B} 摘要:# 使用STL库的`set`容器 > 自带去重和排序的功能,就不需要调用排序函数了 ```c++ #include #include #include #include usi…… 题解列表 2023年06月23日 0 点赞 0 评论 465 浏览 评分:0.0
c语言代码解决问题 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a[20][20], n, i, j, sum[40] = {0}, k = 0,l=0; …… 题解列表 2023年06月23日 0 点赞 0 评论 605 浏览 评分:0.0
[递归实现]利润计算 摘要:解题思路: 思路较为简单,读者简单阅读即可理解注意事项: 注意递归的结束条件参考代码:#include <stdio.h> #define N 100000 double getBonus…… 题解列表 2023年06月22日 0 点赞 0 评论 516 浏览 评分:9.9
2979-确定进制 摘要:解题思路:全部转变为十进制数注意事项:参考代码:int test(int m,int n){ int sum=0; int i=0; while(m){ sum += (m%10)*…… 题解列表 2023年06月22日 0 点赞 0 评论 610 浏览 评分:0.0
2981- 二进制分类 摘要:解题思路:注意事项:参考代码://定义全局变量 int num1=0; int num2=0; //分别A类数和B类数 void test02(int arr[],int len){ …… 题解列表 2023年06月22日 0 点赞 0 评论 500 浏览 评分:0.0
2864:-单词替换 摘要:解题思路:采用最传统的思想即可,先分割单词,再查找替换单词。注意事项:参考代码:struct Test{ char s[101]; }; void test(char *s,char *a…… 题解列表 2023年06月22日 0 点赞 0 评论 651 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int m, n; scanf("%d %d", &m, &n); int gcd =…… 题解列表 2023年06月22日 0 点赞 0 评论 549 浏览 评分:0.0
[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int n; long long Sn = 0, j; scanf("%d…… 题解列表 2023年06月22日 0 点赞 0 评论 509 浏览 评分:0.0
2845: 求10000以内n的阶乘 摘要:解题思路:采用高精度算法解决问题注意事项:参考代码:void test(int n){ //采用高精度算法实现 int arr[1000000]={0}; int i,j; int l…… 题解列表 2023年06月22日 0 点赞 0 评论 671 浏览 评分:0.0
2943-Vigenère密码 摘要:解题思路:寻找规律注意事项:参考代码:void test(char *s1,char *s2,int m,int n){ static char s[1001]; int i; for(i…… 题解列表 2023年06月22日 0 点赞 0 评论 652 浏览 评分:0.0