2587————蓝桥杯2020年第十一届省赛真题-八次求和(仿) 摘要: import java.util.Scanner; import java.math.BigInteger; public class Main { publi…… 题解列表 2023年03月05日 0 点赞 0 评论 464 浏览 评分:0.0
1032: [编程入门]自定义函数之字符串连接 摘要:解题思路: 创建并输入两个字符串,再创建一个字符数组。先将一个字符串内的元素依次放入数组中,再将另一个字符串的元素也依次放入即可。注意事项: 字符数组的末尾要添上'\0',…… 题解列表 2023年03月05日 0 点赞 0 评论 557 浏览 评分:0.0
宏定义球体积 摘要:解题思路:如题注意事项: 参考代码:#include<stdio.h>#define pi 3.1415926int main(){ double a; double r; scanf("%lf",…… 题解列表 2023年03月05日 0 点赞 0 评论 395 浏览 评分:0.0
结构体成绩 摘要:解题思路:#include <stdio.h>struct stu{ char num[100]; char name[100]; int get[3];};void input(struct stu…… 题解列表 2023年03月05日 0 点赞 0 评论 333 浏览 评分:0.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 评论 337 浏览 评分:0.0
2263: 蓝桥杯2015年第六届真题-饮料换购 摘要: ## public class Drink { static int n = new Scanner(System.in).nextInt(); static int …… 题解列表 2023年03月05日 0 点赞 0 评论 395 浏览 评分:0.0
2855: 简单密码 摘要:#include<stdio.h> #include<math.h> #include<string.h> # define N 100001 int main() { c…… 题解列表 2023年03月06日 0 点赞 0 评论 390 浏览 评分:0.0
筛选N以内的所有素数 摘要:解题思路:枚举每一个数字,判断是否为素数。注意事项:0和1要做特殊判断它们是非素数参考代码:#include<stdio.h>int Is_Prime(int n){ int i; if(…… 题解列表 2023年03月06日 0 点赞 0 评论 350 浏览 评分:0.0
编写题解 2247: 蓝桥杯算法提高-输出三个整数的最大数(直接进行比较) 摘要:解题思路:直接进行比较注意事项:注意交换大小后的值参考代码:import java.util.Scanner;public class T2247 { public static void main(…… 题解列表 2023年03月06日 0 点赞 0 评论 391 浏览 评分:0.0
解法有很多,多思考进步才会大(简单解法) 摘要:解题思路:注意事项:参考代码:#include<stdio.h>int main(){ int a,sum=0; scanf("%d",&a); //比如有4个小朋友分苹果,最小的…… 题解列表 2023年03月06日 0 点赞 0 评论 400 浏览 评分:0.0