2911-连续出现的字符 摘要:解题思路:注意事项:注意题目说的是连续出现的次数,并不是整体出现的次数。参考代码:int main(){ char s[1001]; int k; int len; int i,j; …… 题解列表 2023年06月21日 0 点赞 0 评论 420 浏览 评分:0.0
2961-最长单词 摘要:解题思路:采用结构体解决问题注意事项:参考代码:struct Test{ char s[101]; int n; }; int main(){ struct Test test[500…… 题解列表 2023年06月21日 0 点赞 0 评论 387 浏览 评分:0.0
1017-完数的判断 摘要:解题思路:简单的for循环即可实现此功能。注意事项:参考代码:void test01(int n){ int i; int j; int sum; int arr[100]; if…… 题解列表 2023年06月21日 0 点赞 0 评论 372 浏览 评分: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 评论 419 浏览 评分:0.0
2845: 求10000以内n的阶乘 摘要:解题思路:采用高精度算法解决问题注意事项:参考代码:void test(int n){ //采用高精度算法实现 int arr[1000000]={0}; int i,j; int l…… 题解列表 2023年06月22日 0 点赞 0 评论 454 浏览 评分:0.0
[编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main(void){ int n; long long Sn = 0, j; scanf("%d…… 题解列表 2023年06月22日 0 点赞 0 评论 326 浏览 评分:0.0
[编程入门]最大公约数与最小公倍数 摘要:解题思路:注意事项:参考代码:#include <stdio.h> int main() { int m, n; scanf("%d %d", &m, &n); int gcd =…… 题解列表 2023年06月22日 0 点赞 0 评论 358 浏览 评分:0.0
2864:-单词替换 摘要:解题思路:采用最传统的思想即可,先分割单词,再查找替换单词。注意事项:参考代码:struct Test{ char s[101]; }; void test(char *s,char *a…… 题解列表 2023年06月22日 0 点赞 0 评论 448 浏览 评分:0.0
2981- 二进制分类 摘要:解题思路:注意事项:参考代码://定义全局变量 int num1=0; int num2=0; //分别A类数和B类数 void test02(int arr[],int len){ …… 题解列表 2023年06月22日 0 点赞 0 评论 292 浏览 评分:0.0
2979-确定进制 摘要:解题思路:全部转变为十进制数注意事项:参考代码:int test(int m,int n){ int sum=0; int i=0; while(m){ sum += (m%10)*…… 题解列表 2023年06月22日 0 点赞 0 评论 353 浏览 评分:0.0