详细注释 2046: 输出全排列 摘要:``` #include #include #include #include #include #include #include #include #include #incl…… 题解列表 2024年11月05日 2 点赞 0 评论 381 浏览 评分:8.0
每一行都有解析的c++代码。 摘要:参考代码:#include <bits/stdc++.h>//c++万能头文件using namespace std;//可以不写,不写的话,在用的地方前加std::int main() {//主函数…… 题解列表 2024年11月05日 1 点赞 0 评论 412 浏览 评分:8.0
二维数组右上左下遍历... 摘要:解题思路:注意事项:参考代码: #include<stdio.h>int main(){ int n,m,i,j,t=0,cha,a[111][111]={0}; scanf("%d %d…… 题解列表 2024年11月08日 0 点赞 1 评论 456 浏览 评分:8.0
蓝桥杯算法训练VIP-一元三次方程求解,简单问题复杂化解法!!! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; int main(){ // 定义变量a, b, c, d用于存储…… 题解列表 2024年11月11日 0 点赞 1 评论 373 浏览 评分:8.0
信息学奥赛一本通T1267-01背包问题,暴力搜索! 摘要:解题思路:注意事项:参考代码:#include"bits/stdc++.h" using namespace std; // 定义全局变量 int m, n, a1[1210], a2[1210…… 题解列表 2024年11月16日 0 点赞 1 评论 417 浏览 评分:8.0
[编程入门]结构体之时间设计-题解(c语言代码)附解 思路简单 摘要:#include<stdio.h> struct days{//定义结构体 int year; int month; int day; }p1; int main(){ sca…… 题解列表 2024年11月24日 4 点赞 0 评论 908 浏览 评分:8.0
编写题解 1099: 校门外的树C++ 摘要:```cpp #include /* 文件头可以随便,我喜欢万能头,这里也可以(注意有memset函数,要用cstring库): #include #include */ using …… 题解列表 2024年11月26日 7 点赞 1 评论 1110 浏览 评分:8.0
编写题解 1116: IP判断 摘要:```cpp #include #include #include using namespace std; bool judge(string str) { string st…… 题解列表 2024年11月28日 4 点赞 1 评论 561 浏览 评分:8.0
1851利用while和for循环解决 摘要:解题思路:利用while进行输出循环,再利用好for循环将水仙花数进行筛选出来。注意事项:参考代码:#include<stdio.h>#include<math.h>#define N(x) pow(…… 题解列表 2024年12月05日 1 点赞 0 评论 552 浏览 评分:8.0
循环每一位的值,用%10求余+/10更新;初始值比较需要另设n保存 摘要:解题思路:1.循环每一位的值,用%10求余+/10更新。2.中间值需要用count储存,加入if判断。3.while会让原始值降至0,因此初始值的比较需要另设n保存。参考代码:#include<ios…… 题解列表 2024年12月06日 1 点赞 0 评论 416 浏览 评分:8.0