蓝桥杯算法训练VIP-集合运算 (C++代码) 摘要:#include <bits/stdc++.h> #include <stdio.h> using namespace std; int a[1005]; int b[1005]; int …… 题解列表 2019年01月22日 0 点赞 0 评论 776 浏览 评分:9.9
横向打印二叉树 (Java代码)50+行代码搞定 摘要:解题思路:给组测试数据,过了应该就问题不大了.注意事项:参考代码:import java.util.ArrayList; import java.util.Collections; import …… 题解列表 2019年01月22日 1 点赞 0 评论 1981 浏览 评分:9.9
【偶数求和】 (C语言代码) 摘要:#include<stdio.h> int main() { int n,m; while(~scanf("%d%d",&n,&m)) { int i,j=0,sum=0; int a[…… 题解列表 2019年01月23日 2 点赞 0 评论 1201 浏览 评分:9.9
C语言 之 switch-continue-break特殊格式 求 成绩等级转换 (C语言代码) 摘要:解题思路:不想写if-else形式的可以参考我的这种格式!如果成绩大于100则 continue;continue是指跳出本次循环,重新进入下一次循环;再结合switch-case-break语句完美…… 题解列表 2019年01月24日 4 点赞 1 评论 1547 浏览 评分:9.9
完美的代价 (Java代码)递归版 摘要:解题思路:注意事项:参考代码:import java.util.Scanner; public class T1467 { public static boolean IsPossible(…… 题解列表 2019年01月24日 5 点赞 0 评论 1840 浏览 评分:9.9
循环入门练习2 (C语言代码) 摘要:解题思路: 要能被7整除,那就每循环一次就+7;注意事项:a从0开始,如果从7开始会多加一个‘7’,结果是不一样的;参考代码:#include<stdio.h>int main(){ in…… 题解列表 2019年01月24日 1 点赞 1 评论 1016 浏览 评分:9.9
循环入门练习3 (C语言代码) 摘要:解题思路: 跟前面的两题差别不大,唯一变的就是把1000变成了N,所以给N定义就行了;注意事项:参考代码:#include<stdio.h>int main(){ int a,b,N; a…… 题解列表 2019年01月24日 0 点赞 0 评论 826 浏览 评分:9.9
循环入门练习6 (C语言代码),有说明 摘要:解题思路:两个循环,先写大循环,再在中间插入小循环,注意事项:小循环每次开始前要重新定义变量;参考代码:#include<stdio.h>int main(){ int a,b,N; …… 题解列表 2019年01月24日 0 点赞 0 评论 634 浏览 评分:9.9
文科生的悲哀 (C语言代码)(用递归写的,超时了) 摘要:解题思路:注意事项:参考代码:#include<stdio.h> int count=0; int cishu=0; int n; int nextCourse(int course) {…… 题解列表 2019年01月25日 0 点赞 0 评论 893 浏览 评分:9.9
拆分位数 (C语言代码) 摘要:解题思路:利用3次循环356第1次:a%10=6 个位,储存在x[0]里, 同时a=a/10; (a=35)第2次:a%10=5 个位,储存在x[1]里, 同时a=a/1…… 题解列表 2019年01月25日 0 点赞 2 评论 1572 浏览 评分:9.9