二级C语言-公约公倍 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int gcd(int x,int y){ int t; t = x%y…… 题解列表 2022年04月01日 0 点赞 0 评论 390 浏览 评分:0.0
不用数组版C语言-计负均正 摘要:解题思路:输一个判断一个注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n=0,m; double…… 题解列表 2022年04月01日 0 点赞 0 评论 458 浏览 评分:7.0
计负均正c++(新手勿喷) 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int num[100]; int count …… 题解列表 2022年04月01日 0 点赞 0 评论 364 浏览 评分:9.9
: 二级C语言-等差数列 摘要:解题思路:注意事项:注意此题为求解前n项和参考代码:#include<stdio.h>int main(){ int n; int sum=0; scanf("%d",&n); i…… 题解列表 2022年04月01日 0 点赞 0 评论 311 浏览 评分:9.9
C语言训练-邮票组合问题*(python版) 摘要:解题思路:注意事项:参考代码:a = [0,3,6,9,12]#将4张3分的所有情况列出b = [0,5,10,15]#将3张5分的所有情况列出c = []s = 0for i in range(0,…… 题解列表 2022年04月01日 0 点赞 0 评论 386 浏览 评分:0.0
[编程入门]利润计算(C语言) 摘要:解题思路: 1.先理清就是题目所包含的数学关系,类似分段函数 i: 利润高于100000元,低于200000元(100000<I≤200000)时,低于100000元…… 题解列表 2022年04月01日 0 点赞 0 评论 597 浏览 评分:9.9
优质题解 [编程入门]字符串分类统计2种方法(C语言) 摘要:解题思路: 此题可用两种方法来做方法一:1.了解ASCII表,那些字符在哪里,用那些字符对应的数字,也可不用了解,直接用字符就行2.要声明4个变量分别记录题目(字母、数字、空格、其他字符)要求的数量,…… 题解列表 2022年04月01日 6 点赞 49 评论 14551 浏览 评分:9.7
满分 使用一个index指向二进制中的最后一个1的位置 摘要:解题思路:注意事项:注意二进制有可能超过8位,而且少于8位时,可能会抹掉多余的零,为了统一后面,为不满8位的补了零,还有一个比较小的问题(可能我没有脑子记成二进制从后往前读,傻了傻了)用一个递归算法思…… 题解列表 2022年04月01日 0 点赞 0 评论 343 浏览 评分:9.9
[STL训练]sort练习-题解(各语言代码) 摘要:**python** ```python from heapq import nlargest print(*nlargest(int(input().split()[1]),map(int,i…… 题解列表 2022年04月01日 0 点赞 0 评论 500 浏览 评分:0.0
1983: 蓝桥杯算法提高VIP-求指数 摘要:解题思路:注意事项:参考代码:n,m=map(int,input().split()) for i in range(1,m+1): print('%12d'%(n**i)…… 题解列表 2022年04月01日 0 点赞 0 评论 416 浏览 评分:0.0