题解列表
2798: 整数序列的元素最大跨度值
摘要:解题思路:注意事项:参考代码:a = int(input())n = list(map(int,input().split()))print(max(n) - min(n))……
既然答案较少,那在下就献丑了(c语言)简单易懂,非递归
摘要:参考代码:#include<stdio.h>
int funY(int a,int b){ //最大公约数
int min = (a < b ? a : b);
while……
1842: 蓝桥杯2017年第八届真题-对局匹配 c++
摘要:解题思路:注意事项:参考代码:#include<iostream>
#include<algorithm>
#include<cmath>
#include<vector>
#define F……
2790: 分段函数(c++)
摘要:解题思路:注意事项:保留3位浮点小数参考代码:#include<bits/stdc++.h>using namespace std;int main(){ float x; cin>>x;……
优质题解
1259: 送分题素数
摘要:#####**素数的概念:**
素数又称质数(prime number),有无限个。
一个大于1的自然数,除了1和它本身外,
#####**不能被其他自然数(包括其它质数(素数))整除**
……
1265: 青年歌手大奖赛_评委会打分
摘要:```cpp
#include
#include
#include
using namespace std;
int a[99];
int main()
{
int n;
……
1266: 马拦过河卒
摘要:```cpp
#include
using namespace std;
int dp[17][17];
bool vis[17][17];
int dx[8]={-2,-2,-1,-1,1……
1875: 蓝桥杯2017年第八届真题-小数第n位(c++)10ms
摘要:解题思路:因为相除时每一次的余数要小于除数,即余数的个数是有限的.两个整数相除,商要么是整数,要么有限小数,要么是无限(循环)小数.注意事项:找出循环部分参考代码:#include<iostream>……