蓝桥杯算法训练-排序C实现 摘要:```c #include void main() { int a[3],i,max,middle,min; scanf("%d %d %d",&a[0],&a[1],&a[2]); …… 题解列表 2021年09月10日 0 点赞 0 评论 884 浏览 评分:9.9
用循环语句判断每个三位数是否符合水仙花 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c,d,n,i; //scanf("%d\n",&n); for(i…… 题解列表 2021年09月10日 0 点赞 0 评论 630 浏览 评分:9.9
原码求补码Java ###原码,反码,补码的关系反码:原码是正数,(原码就是反码)不变;原码是负数,原码符号位(最高位)不变,其余位按位取反;补码:原码是正数,(原码就是补码)不变;原码是负数,反码符号位(最高位)不变,数值位+1原码->反码->补码```javascript//packageStudy;importja 题解列表 2021年09月10日 0 点赞 0 评论 733 浏览 评分:9.9
输出三个整数的最大数C实现 摘要:```c #include void main() { int a,b,c; scanf("%d %d %d",&a,&b,&c); printf("%d",(a>b?a:b)>c?…… 题解列表 2021年09月11日 0 点赞 0 评论 889 浏览 评分:9.9
666 必看 进入惊喜 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int x,y,n,z,j; scanf("%d%d%d",&x,&y,&n); { if(x%4==0) …… 题解列表 2021年09月11日 0 点赞 0 评论 560 浏览 评分:9.9
编写题解 1072: 汽水瓶 (C++代码) 摘要:解题思路:利用递归思路求出空瓶数和已喝瓶数注意事项:自己的笨方法和直接除以二的那位兄台比不了参考代码:#include<bits/stdc++.h> using namespace std; …… 题解列表 2021年09月11日 0 点赞 0 评论 1211 浏览 评分:9.9
蓝桥杯算法提高-快速排序-题解(C语言) ```c#includevoidswap(int*a,inti,intj){inttemp;temp=a[i];a[i]=a[j];a[j]=temp;}voidsort(int*a,intleft,intright){if(left>=right)/*如果左边索引大于或者等于右边的索引就代表已经整理 题解列表 2021年09月12日 0 点赞 0 评论 729 浏览 评分:9.9
C语言训练-尼科彻斯定理题解 摘要:解题思路:注意事项:参考代码:x=int(input())m=x**3k=x//2t=str(x)+"*"+str(x)+"*"+str(x)+"="+str(m)+"="if x%2!=0: f…… 题解列表 2021年09月12日 0 点赞 0 评论 695 浏览 评分:9.9
[编程入门]数字的处理与判断 摘要:解题思路:注意事项:参考代码:#include <stdio.h>#include <math.h>int main(){ int n; scanf("%d",&n); int l[5]={0}; i…… 题解列表 2021年09月12日 0 点赞 0 评论 475 浏览 评分:9.9
Iridescent --Minesweeper #Minesweeper##注意事项:getchar消化换行符###思路:创建一个存储初始雷图的字符数组,以及一个与之对应的int数组,在雷图中找雷,找到后在对应的int数组位置,使其周围的数递增(注意边界情况),最后输出答案。```C#includeintmain(){introw, 题解列表 2021年09月13日 0 点赞 0 评论 948 浏览 评分:9.9