蓝桥杯历届试题-回文数字 摘要:参考代码:#include<iostream> #include<algorithm> using namespace std; bool isReverse(int n) { …… 题解列表 2022年03月11日 0 点赞 0 评论 265 浏览 评分:9.9
蓝桥杯2014年第五届真题-排列序数 摘要:```cpp #include using namespace std; const int N = 100000; int k=0,l,vis[N]; char s[N]; char r…… 题解列表 2022年03月11日 0 点赞 0 评论 353 浏览 评分:0.0
dp与dfs 蓝桥杯2014年第五届真题-地宫取宝 摘要:解题思路:注意事项:参考代码:#include <bits/stdc++.h>using namespace std;typedef long long ll;const int MOD = 1000…… 题解列表 2022年03月11日 0 点赞 0 评论 369 浏览 评分:0.0
[C++]用switch case语句 摘要:解题思路:用switch case语句也可以做出来注意事项:没什么要注意的,注意公式计算参考代码:#include<stdio.h>main(){ int m; int i; sca…… 题解列表 2022年03月11日 0 点赞 0 评论 442 浏览 评分:7.3
(简单易懂)自定义函数之字符串拷贝 摘要:注意事项:getchar()是读入函数的一种。它从标准输入里读取下一个字符,相当于getc(stdin)。返回类型为int型,为用户输入的ASCII码或EOF。getchar有一个int型的返回值。当…… 题解列表 2022年03月11日 0 点赞 0 评论 446 浏览 评分:0.0
求和训练python 摘要:解题思路:分别求a部分,b部分,c部分的和注意事项:欢迎报考中山大学!参考代码:import matha,b,c=map(int,input().split())squares=[]pfh=[]dsh…… 题解列表 2022年03月11日 0 点赞 0 评论 647 浏览 评分:9.9
数列排序(用选择排序法做) 摘要:```c #include int main() { int n,i,min,j,t; int a[10000]; scanf("%d",&n); for(i=0;i…… 题解列表 2022年03月11日 0 点赞 0 评论 432 浏览 评分:0.0
砝码称重(c++dp解法) 摘要:解题思路:动态规划dp解法for循环i不断加入砝码当前状态=不加/右加/左加 :dp[i+1][j]=dp[i][j] || dp[i][j+w[i]] || dp[i][abs(j-w[i])];参…… 题解列表 2022年03月11日 0 点赞 0 评论 1869 浏览 评分:6.9
优质题解 列出最简真分数序列(c及c++) 摘要:解题思路:先求出40的因数,然后再用40以内的数与这些因数一一判断是否可以整除,如果都不能则输出注意事项:注意1和40;参考代码:/*C++参考代码*/ #include<iostream> …… 题解列表 2022年03月12日 0 点赞 0 评论 1523 浏览 评分:9.0
字符串的输入输出处理(Java语言) 摘要:解题思路:注意事项:nextInt只取到数字,后面还有换行符,需用nextLine获取并自动丢弃,才可继续取下一行。参考代码:import java.io.*; import java.util.*…… 题解列表 2022年03月12日 0 点赞 0 评论 874 浏览 评分:8.0