C++代码辗转相除法求最大公约数 摘要:解题思路:辗转相除法求2个整数的最大公约数求解最小公倍数:公式:2个整数的最小公倍数=它们的乘积/它们的最大公约数注意事项:暂时不明参考代码:#include<iostream>using names…… 题解列表 2021年12月27日 0 点赞 0 评论 626 浏览 评分:9.9
C++代码for循环实现数字逆序输出 摘要:解题思路:for循环逆序输出数字for(int i =9;i>=0;i--)注意事项:暂时不明参考代码:#include<iostream>using namespace std;int main()…… 题解列表 2021年12月27日 0 点赞 0 评论 1197 浏览 评分:8.7
C++代码确定插入数字的索引 摘要:解题思路:确定插入数字的索引然后分段输出即可如何确定插入数字的索引:遍历数组中已排序好的数字如果插入的数字大于当前遍历的数字,插入数字放置到当前遍历的数字的后一位否则遍历终止注意事项:暂时不明参考代码…… 题解列表 2021年12月27日 0 点赞 0 评论 383 浏览 评分:0.0
1434: 蓝桥杯历届试题-回文数字 摘要:从 10000 直接循环到 999999,先判断各位数字和是不是与所给数相等,不相等直接判断下一个数,如果相等用 equal 函数判断是否是回文数。#include <bits/stdc++.h> …… 题解列表 2021年12月26日 0 点赞 0 评论 447 浏览 评分:0.0
2004: 统计成绩 摘要:#include<bits/stdc++.h> using namespace std; int main(){ double sum(0); int x,fail(0);…… 题解列表 2021年12月26日 0 点赞 0 评论 378 浏览 评分:0.0
1749: 字符排序 摘要:#include<bits/stdc++.h> using namespace std; int main(){ int n; cin >> n; getchar…… 题解列表 2021年12月26日 0 点赞 0 评论 507 浏览 评分:0.0
2002: 计算数字个数 摘要:#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); …… 题解列表 2021年12月26日 0 点赞 0 评论 394 浏览 评分:0.0
编写题解 1232: 查找最大元素 摘要:解题思路:注意事项:参考代码:#include<iostream> #include<cstdio> #include<cstring> using namespace std; int ma…… 题解列表 2021年12月26日 0 点赞 0 评论 383 浏览 评分:0.0
1771: [编程入门]链表之节点删除 摘要:#include<bits/stdc++.h> using namespace std; struct node{//定义链表结点,头结点 xuehao 变量保存链表结点数 int…… 题解列表 2021年12月26日 0 点赞 0 评论 494 浏览 评分:0.0
2024: 链表删除练习 摘要:有头结点的单链表,用尾插法导入数据。#include<bits/stdc++.h> using namespace std; struct node{ int data; …… 题解列表 2021年12月25日 0 点赞 0 评论 1216 浏览 评分:0.0