自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h>void yd(int a[],int m,int n){ int i,b[n]; for(i=0;i<n;i++) …… 题解列表 2023年11月26日 0 点赞 0 评论 321 浏览 评分:0.0
题目 3034: 自然数的拆分 摘要:算法介绍: 本题使用的算法为深度优先搜索算法(Depth-First-Search,DFS),该算法所遵循的策略如同名字一样,讲究一个“深”字,就是尽可能深的去搜锁所有的节点,直到把所有…… 题解列表 2023年11月26日 0 点赞 0 评论 715 浏览 评分:7.3
陶陶摘苹果 摘要:解题思路:注意事项:参考代码:ls = list(map(int,input().split()))h = int(input())c = 0for i in range(0,len(ls)): …… 题解列表 2023年11月26日 0 点赞 0 评论 470 浏览 评分:0.0
与指定数字相同的数的个数 摘要:解题思路:使用for循环遍历列表注意事项:参考代码:n = int(input())c=0ls = list(map(int,input().split()))m = int(input())for …… 题解列表 2023年11月26日 0 点赞 0 评论 750 浏览 评分:0.0
题解 2776: A*B问题 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int a,b; cin>>a>>b; cout<<…… 题解列表 2023年11月26日 0 点赞 0 评论 401 浏览 评分:9.9
题解 2772: 苹果和虫子 摘要:解题思路:注意事项:参考代码:#include<iostream>using namespace std;int main(){ int x,y,n; cin>>n>>x>>y; i…… 题解列表 2023年11月26日 0 点赞 0 评论 304 浏览 评分:9.9
大整数加法(C语言) 摘要:解题思路:定义两个字符串 s1 和 s2,用于存储输入的两个大整数。通过 scanf 从标准输入中读取两个字符串。计算两个字符串的长度 la 和 lb,以确定大整数的位数。初始化数组 a 和 b,用于…… 题解列表 2023年11月26日 1 点赞 0 评论 1005 浏览 评分:9.9
]自定义函数之字符类型统计 摘要:解题思路:注意事项:参考代码#include<stdio.h>void jisu(char a[]){ int i,zimu=0,shuzi=0,kongge=0,qita=0; for(…… 题解列表 2023年11月26日 0 点赞 0 评论 319 浏览 评分:0.0
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>void fenli(int n){ int g,s,b,q; g=n%10; s…… 题解列表 2023年11月26日 0 点赞 0 评论 293 浏览 评分:0.0
自定义函数之字符提取 摘要:解题思路:注意事项:参考代码#include<stdio.h>#include<string.h>void yy(char a[],char b[]){ int i,j=0; for(i=…… 题解列表 2023年11月26日 0 点赞 0 评论 374 浏览 评分:9.9