2966: 最大质因子序列 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int ss(int x){//判断是否为素数 int sum=0; for(i…… 题解列表 2023年09月16日 0 点赞 0 评论 452 浏览 评分:9.9
区间内的真素数 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;bool zs(int x){ if(x<2) { re…… 题解列表 2023年09月16日 0 点赞 0 评论 363 浏览 评分:0.0
2968: 区间内的真素数 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int ss(int x){//判断是否为素数 if(x<2) { …… 题解列表 2023年09月16日 0 点赞 0 评论 402 浏览 评分:0.0
2981: 二进制分类 摘要:解题思路:int er(int a){ int sum1=0,sum0=0,b=a; for(;;) { if(b%2==1) { sum1++…… 题解列表 2023年09月16日 0 点赞 0 评论 439 浏览 评分:9.9
自定义函数之数字分离 摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<string.h>int fun(char a[],char b[]){ int i=0,j=0; whi…… 题解列表 2023年09月16日 0 点赞 0 评论 362 浏览 评分:0.0
用c++来解决数据结构中关于栈的括号匹配问题,详细过程 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string.h>using namespace std;#define MaxSize 100//定义栈中元素最大…… 题解列表 2023年09月16日 0 点赞 0 评论 498 浏览 评分:0.0
用c++来解决数据结构中关于栈的括号匹配问题 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<stack>#include<string.h>#include<algorithm>using namespace…… 题解列表 2023年09月16日 0 点赞 0 评论 503 浏览 评分:0.0
简单拆分(C语言) 摘要:解题思路:逆序不是从小到大注意事项:参考代码:#include<stdio.h>int main(){ int x,a,b,c; scanf("%d",&x); a=x/100; b=x/10%10;…… 题解列表 2023年09月16日 0 点赞 0 评论 384 浏览 评分:9.9
猴子吃桃简单for循环 摘要:解题思路:用数学方法反推发现每天猴子能吃的桃子数的规律,第一天为1个,记为x,第二天为(1+1)*2=4个,x的新值为4,第三天为(4+1)*2=10个,以此类推注意事项:参考代码#include<s…… 题解列表 2023年09月16日 0 点赞 0 评论 309 浏览 评分:0.0
C语言解法容易理解 摘要:解题思路:找到规律转化为简易的数学语言参考代码:#include<stdio.h>int main(){ int a; float b = 2; int c = 1; floa…… 题解列表 2023年09月15日 0 点赞 0 评论 287 浏览 评分:0.0