题解列表
数据结构-链表的基本操作(c++)
摘要:#include <iostream>
#include <cstring>
#include <string>
#include <stdlib.h>
using namespace std……
报数问题c语言代码,求交流
摘要:# include <stdio.h>
int len; //表示围成圈的总人数
int main(){
scanf("%d", &len);
int j = 0, i = ……
蓝桥杯基础练习VIP-时间转换C++
摘要:#include<iostream>using namespace std;int main() { int n,h,m,s,a; cin >> n; h = n / 3600; ……
关键是注意输入缓冲区与输出空行的方法
摘要:解题思路:关键是注意输入缓冲区与输出空行的方法注意事项:参考代码:#include <iostream>#include <cstring>using namespace std;int main……
1028: [编程入门]自定义函数求一元二次方程
摘要:解题思路:思路很容易理解,就是套一元二次方程的公式。题目要求是写3个子函数,分别表示Δ与0的大小关系的3种情况。注意复数的表示,我是把虚部算出来以后加上i。注意事项:(1)开方sqrt()函数要加上<……
蓝桥杯2019年第十届真题-外卖店优先级-题解(C++代码)
摘要:解题思路:注意事项:参考代码:#include<iostream>#include<algorithm>#include<vector>using namespace std;const int N ……
蓝桥杯基础练习VIP-回形取数C++bfs
摘要:```cpp
#include
#include
using namespace std;
typedef pairPII;
const int N = 200;
int a[N][N],……
1029: [编程入门]自定义函数处理素数
摘要:解题思路:总觉得前面有类似的题目,所以没啥好说的。注意事项:可以把异常检测什么的全写进子函数,顺便写成void型打印算了。参考代码:#include <iostream>
using names……
python-贪吃的大嘴
摘要:解题思路:一维费用背包问题(多重背包)注意事项:参考代码:from cmath import inf
def f(n,m):
dp = [inf for j in ra……