题解列表
编写题解 1116: IP判断
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a, b, c, d,k; while ( (k=scanf("%d.%d.%d.……
用C++求和(do...while)
摘要:解题思路:从题目中知道要输入N,且要求N以内所有数之和,代码中用sum表示。注意事项:do...while中do括号里面是循环体,while括号里面满足循环的条件表达式,其无论如何都会执行一次。参考代……
先求最大的,再递减比较
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int x; cin>>x; cou……
1738: 排序 (sort)
摘要:解题思路:使用sort()排序,注意使用头文件<bits/stdc++.h>或使用#include<algorithm>头文件sort(begin, end, cmp),其中b……
蓝桥杯算法提高VIP-逆序排列(c语言)
摘要:#include<stdio.h>#include<string.h>#include<math.h>int&n……
猴子吃桃。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int m,n;&nb……
C语言:三个数组+两个函数 解决问题【豆包改过的代码】
摘要:解题思路:【原代码是我写的,现在这个代码是豆包改的,和我原本想法细节上有出入,我就不解释了,直接分享代码吧】注意事项:参考代码:#include <stdio.h>#include <……
震宇大神的杀毒软件(冒泡)
摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int n,num[100]; while (~scanf("%d", &……