题解列表
1133库函数解法(Python)
摘要:解题思路:Python的魅力就是库函数的多样性和强大性注意事项:math.factorial(i)即返回i的阶乘值参考代码:import mathn = int(input())summary = 0……
适合初学者看通俗易懂C++
摘要:解题思路: 1.题目要求最小步数,利用BFS搜索,一旦找到就是最小步数; 2.使用双向搜索减少时间,分别从初态和终态使用BFS,使用map关联数组命名为maps的键……
二级C语言-自定义函数题解
摘要:解题思路:注意事项:参考代码:#include<stdio.h>#include<math.h>double fact(int n){ double s; if(n==1) s=……
题目 1984: 蓝桥杯算法提高VIP-求圆面积表面积体积
摘要:解题思路:注意事项:参考代码:package 入门题;import java.math.BigDecimal;import java.math.BigInteger;import java.util.……
《关于我买1块钱8折书含泪赚88.8这件事》
摘要:解题思路:注意事项:参考代码:n = list(map(int,input().split()))a = n[0]-n[1]*0.8if n[0]+n[1] == 11: a = n[0]*10……
1162: 密码(c++代码)
摘要:```cpp
#include
using namespace std;
int main()
{
int n,i=0,j,b,c,d,f;
string a;
……
1164: 数组的距离
摘要:```cpp
#include
#include
using namespace std;
struct number
{
int value,flag;
};
int mai……
1165: 明明的随机数
摘要:```cpp
#include
using namespace std;
int main()
{
int a,s1[100],s2[100],s=0,x=1,j;
cin……