C语言训练-求PI*(python版) 摘要:解题思路:注意事项:参考代码:import mathsum = 0i = 1k = 0n = 1while math.fabs(n) >= 10**(-6): #控制循环 sum += n…… 题解列表 2022年04月08日 0 点赞 0 评论 457 浏览 评分:0.0
C语言训练-求具有abcd=(ab+cd)2性质的四位数(python版) 摘要:解题思路:注意事项:参考代码:for i in range(1000,10000): #遍历四位数 a = i//100 #分离出千位和百位 b = i % 100 #分离出十位…… 题解列表 2022年04月08日 0 点赞 0 评论 579 浏览 评分:0.0
带记录的dfs 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=8;int g[N][N];bool vis[N][N];i…… 题解列表 2022年04月08日 0 点赞 0 评论 370 浏览 评分:0.0
暴搜 DFS走迷宫 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;const int N=35,M=35;bool vis[N][N];int ans…… 题解列表 2022年04月08日 0 点赞 0 评论 544 浏览 评分:0.0
c++1503: 蓝桥杯算法提高VIP前十名 摘要:解题思路:注意事项:参考代码:#include<bits/stdc++.h>using namespace std;int main(){ int n,m[200]; cin>>n; fo…… 题解列表 2022年04月08日 0 点赞 0 评论 311 浏览 评分:0.0
dp01背包问题 摘要:``` import java.util.Scanner; public class Main { public static void main(String[] args) { …… 题解列表 2022年04月08日 0 点赞 0 评论 480 浏览 评分:0.0
蓝桥杯2017年第八届真题-分巧克力 摘要:解题思路:利用二分答案,类似于二分查找,就是把mid去判断是否大于等于小于正确的数注意事项:参考代码:#include<bits/stdc++.h> using namespace std; in…… 题解列表 2022年04月08日 0 点赞 0 评论 449 浏览 评分:0.0
直接替换字符串 摘要:import java.util.*;public class Main { static Scanner in = new Scanner(System.in); public stat…… 题解列表 2022年04月08日 0 点赞 0 评论 383 浏览 评分:0.0
容易看懂 [编程入门]有规律的数列求和 摘要:解题思路:注意事项:参考代码:a = int(input())b = 2c = 1d = 0f = 1for i in range(a): e = b/c d += e b += c…… 题解列表 2022年04月09日 0 点赞 0 评论 516 浏览 评分:0.0
利用calendar库中的weekday函数解决问题 摘要:解题思路:注意事项:参考代码:import calendaryear=int(input())a=0for i in range(1,13): if calendar.weekday(year,…… 题解列表 2022年04月09日 0 点赞 0 评论 503 浏览 评分:0.0