简单粗暴暴力解法 摘要:解题思路:直接从n等于3开始一个一个试三个条件都满足就跳出循环注意事项:参考代码:#include<stdio.h> int main(){ int a,b,c,n; scanf("%d %d %…… 题解列表 2023年03月09日 3 点赞 0 评论 674 浏览 评分:9.9
分解质因子并保存 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;void isWanshu(int n){ int sum=0,k = 0; …… 题解列表 2023年03月09日 0 点赞 0 评论 515 浏览 评分:0.0
AC :简单递归+备忘录优化解决问题;个人的一点理解,望给高分鼓励鼓励 摘要:解题思路:问题的解决类似树结构,子问题与母问题都是求解,从1到n/2数的个数。注意事项:测试代码中有一个为1000.结果数值较大。参考代码:#include<iostream> #include<s…… 题解列表 2023年03月09日 0 点赞 0 评论 1322 浏览 评分:9.9
python简单易懂 摘要:解题思路:首先是将列表输入,然后通过下标的方式换位,最后再将其一个个输出注意事项: 不能用列表直接输出,否则格式不对;可以通过嵌套for循环输出,要记得什么时候不换行,什么时候换行参考代码:jz =…… 题解列表 2023年03月09日 0 点赞 1 评论 774 浏览 评分:8.0
题目 2041: 财富之沙(C语言代码) 摘要:解题思路:贪心算法注意事项:需要把单价从大到小排序,重量也要相应地进行变换参考代码:#include<stdio.h> int main(void) { int n, m,temp,val…… 题解列表 2023年03月09日 0 点赞 0 评论 647 浏览 评分:0.0
数组递归--------简单方法 摘要:解题思路:用一个数组存储数,然后通过变换将式子变换形式,最后输出注意事项:要用longlong定义参考代码:#include<bits/stdc++.h>using namespace std;int…… 题解列表 2023年03月09日 0 点赞 0 评论 939 浏览 评分:9.9
编写题解 1085: A+B for Input-Output Practice (I) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,b; while(scanf("%d%d",&a,&b)==2){ printf("%d\n…… 题解列表 2023年03月09日 0 点赞 0 评论 583 浏览 评分:0.0
1047: [编程入门]报数问题 合理利用continue是该题突破的重点即解决《在报数时如何跳过已经退圈的位置》```c#include#include#include#includeintmain(){intk=0,m,n;//k统计数到3,m统计剩余在圈内的元素个数,n为最初元素个数scanf("%d", 题解列表 2023年03月09日 0 点赞 0 评论 456 浏览 评分:0.0
编写题解 1050: [编程入门]结构体之成绩记录 ```c#include#include#include#include#includetypedefstructstu{charnum[100];charname[100];inttest[3];}info;voidinput(info*p, 题解列表 2023年03月09日 0 点赞 0 评论 751 浏览 评分:0.0
1511: 蓝桥杯算法提高VIP-复数求和——Ccp 摘要:解题思路:注意事项:参考代码:#include<stdlib.h>struct Num{ int rnum; int vnum; struct Num*next;};int main(){ struc…… 题解列表 2023年03月09日 0 点赞 0 评论 572 浏览 评分:9.9