oliv_排除法暴力循环 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int sum = 0, arr[4]; for(int i=0; i<4; i++) …… 题解列表 2024年10月03日 0 点赞 0 评论 373 浏览 评分:0.0
3209: 蓝桥杯2024年第十五届省赛真题-好数 摘要:解题思路:注意事项:参考代码:def is_good_number(num): k = 1#初始化变量k为1,用于跟踪当前数字的位数 (这里从右边开始,第一位是奇数) while num:…… 题解列表 2024年10月04日 1 点赞 0 评论 409 浏览 评分:0.0
循环的方式求和Sn 摘要:解题思路:注意到22=2*10+2;222=22*10+2;因而可用双层for循环。注意事项:int sum 要定义到外层循环内部,保证每次循环时sum的初始值都是2.参考代码:#include<st…… 题解列表 2024年10月05日 0 点赞 0 评论 162 浏览 评分:0.0
1257: 超级楼梯(斐波那契递归)动态规划 摘要:```cpp #include using namespace std; int main() { int n; cin >> n; int m; while (n--…… 题解列表 2024年10月05日 0 点赞 0 评论 195 浏览 评分:0.0
1585:链表操作 摘要:```cpp #include using namespace std; typedef struct node { int shibu; int xubu; node* n…… 题解列表 2024年10月05日 0 点赞 0 评论 112 浏览 评分:0.0
题目 1050: [编程入门]结构体之成绩记录 摘要:解题思路:注意事项:参考代码:#include <stdio.h> void input();void print(); int n;struct information{ char num[10]…… 题解列表 2024年10月06日 0 点赞 0 评论 641 浏览 评分:0.0
1014: [编程入门]阶乘求和 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll n,…… 题解列表 2024年10月06日 0 点赞 0 评论 485 浏览 评分:0.0
2825: 计算多项式的值 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll n;…… 题解列表 2024年10月06日 0 点赞 0 评论 216 浏览 评分:0.0
C++使用Swap函数倒置字符串 摘要:解题思路:注意事项:参考代码:#include <iostream>using namespace std;int main(){ int num = 0;// 读入字符串长度 cin >…… 题解列表 2024年10月07日 0 点赞 0 评论 221 浏览 评分:0.0
to_string的大作用 摘要:参考代码:#include<bits/stdc++.h> using namespace std; #define int long long bool haoshu(int i) { s…… 题解列表 2024年10月07日 1 点赞 0 评论 170 浏览 评分:0.0