基础解法(易懂) 摘要:#include<stdio.h> int max(int x,int y) { return x>y?x:y; } int min(int x,int y) { return x>…… 题解列表 2023年09月05日 0 点赞 0 评论 677 浏览 评分:9.9
C++ 阶乘(递归做法) #include;usingnamespacestd;longdigui(long);//先声明intmain(){longa,num=0;//声明变量cin>>a;//输入一个参数for(inti=1;i 题解列表 2023年09月06日 0 点赞 0 评论 729 浏览 评分:9.9
蓝桥杯基础练习VIP-时间转换C语言题解 摘要:很好理解,就不介绍了 ```c #include int main(void) { int h=0,m=0,s=0,in_s; scanf("%d",&in_s); …… 题解列表 2023年09月06日 0 点赞 0 评论 565 浏览 评分:9.9
自定义函数之数字后移 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int m,n,x=0; int a[32]={0}; int b[32]={0}; scanf("%…… 题解列表 2023年09月06日 0 点赞 0 评论 599 浏览 评分:9.9
关于输出答案能过在件事(流汗) #啊这这个题有点。。。注意事项:注意审题不知道为什么这样出题参考代码:print(200) 题解列表 2023年09月06日 0 点赞 1 评论 546 浏览 评分:9.9
二级C语言-公约公倍 摘要:解题思路:注意事项:参考代码:#include <stdio.h>int main (){ int n,m,t; int a,b; scanf ("%d %d",&n,&m); …… 题解列表 2023年09月07日 0 点赞 0 评论 529 浏览 评分:9.9
奥运奖牌计数 摘要:参考代码: ```c #include int main() { int n; scanf("%d",&n); int a[n][3]; for(int i=0;i…… 题解列表 2023年09月07日 0 点赞 0 评论 857 浏览 评分:9.9
取二进制第x位 摘要:解题思路:学算法就上acwing注意事项: 参考代码:#include<iostream> using namespace std; int a[5],n,sum=0; int main(voi…… 题解列表 2023年09月07日 0 点赞 0 评论 713 浏览 评分:9.9
补码(或许明日太阳西下倦鸟已归时) 摘要:解题思路: 首位是符号位 1为负数 0为整数 负数补码为反码加一 整数补码为原码注意事项:字符串存储参考代码:#include<iostream> using n…… 题解列表 2023年09月08日 0 点赞 0 评论 685 浏览 评分:9.9
☆☆☆数组模拟队列实现队列操作☆☆☆ 解题思路:使用数组模拟的思想来解题。定义一个数组来表示我们的队列,然后定义队头和队尾,一般来讲非循环队列队尾设置为-1,循环队列的队尾可以设置为0当进行插入操作时,只需队尾++即可,删除元素时只需让队头前移,判断是否为空可以看队头是否超过队尾即可判断统计当前元素个数, 题解列表 2023年09月08日 0 点赞 0 评论 1008 浏览 评分:9.9