2855: 简单密码 摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() { c…… 题解列表 2023年03月06日 0 点赞 0 评论 382 浏览 评分:0.0
2854: 密码翻译 摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() { c…… 题解列表 2023年03月06日 0 点赞 0 评论 786 浏览 评分:9.9
完全二叉树的权值最详细注释 摘要:利用树的性质 主要两个点: 1. 最后一层节点可能不是满的,所以需要加上这个判断条件 (i == n-1) 2. 下一层的节点数是上一层的节点数*2,通过判断当前第几个节点是否==该层总结点…… 题解列表 2023年03月06日 0 点赞 0 评论 508 浏览 评分:9.9
解法有很多,多思考进步才会大(简单解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){int n,start,end,sum=0,max=0; scanf("%d",&n); for(in…… 题解列表 2023年03月05日 1 点赞 0 评论 572 浏览 评分:9.9
2263: 蓝桥杯2015年第六届真题-饮料换购 摘要: ## public class Drink { static int n = new Scanner(System.in).nextInt(); static int …… 题解列表 2023年03月05日 0 点赞 0 评论 387 浏览 评分:0.0
利润计算c++ 摘要:解题思路:注意事项:参考代码:#include<iostream>#include<string>using namespace std;int main(){ float i,a; while…… 题解列表 2023年03月05日 0 点赞 0 评论 548 浏览 评分:7.0
用筛法求之N内的素数 摘要:解题思路:#include <stdio.h>int main(){ int n,i,j,k; scanf("%d",&n); for(i=2;i<=n;i++){ k=0; for(j=2;j<…… 题解列表 2023年03月05日 0 点赞 0 评论 330 浏览 评分:0.0
优质题解 LikeWater - 1004: [递归]母牛的故事C++(曾经的你对我嗤之以鼻,现在的我你高攀不起~~(‾◡◝)~~) 摘要:***—————依稀记得那是第一次使用dotcpp来学习c++提升直接的编程能力,当时第一个遇到的第一个题目就是这个母牛的故事,当时仗着自己的学过递归,感觉能做出来,但是是我小瞧递归了,时间超限是我永…… 题解列表 2023年03月05日 3 点赞 5 评论 1591 浏览 评分:9.3
结构体成绩 摘要:解题思路:#include <stdio.h>struct stu{ char num[100]; char name[100]; int get[3];};void input(struct stu…… 题解列表 2023年03月05日 0 点赞 0 评论 328 浏览 评分:0.0
用递归解决此题 摘要:解题思路: 从左往右依次判断,判断每一种情况注意事项: 参考代码:import java.util.*; public class Main { static String[] arr; …… 题解列表 2023年03月05日 0 点赞 0 评论 493 浏览 评分:9.9