文章列表
——Java知识点(常更新)————
摘要:实例变量(方法)与类变量(方法)思维导图实例变量与类变量代码public class Main{
public static void main(String[] args){
……
【2024级新生必看】新生小白如何学好C语言--蓝桥杯C/C++国奖学长分享
摘要:新手小白如何学好C语言 学习C语言,和你是什么专业的没有关系,做智能车或者机器人,在智工坊不止有计算机、智能系的学长学姐,也有很多艺术系、管理系、建环系等你们的学长学姐都在这里,而且他们也做得很……
Road(暂存代码)
摘要:```cpp
#include
using namespace std;
typedef long long ll ;
const int N = 1e5+10 ;
ll a[N],v[N……
蓝桥杯2023年第十四届省赛真题-买瓜
摘要:#include <bits/stdc++.h>
using namespace std;
int n, m;
vector<long> suf;//可能会卡总重量的数据类型
vector……
输入一个数字N,输出1~N中所有数字及它们的因子,用空格分开,一个数及它的因子占一行 c++
摘要:#include <bits/stdc++.h>using namespace std;typedef long long ll;int main(){ ll n; cin>>n; ……
贪心算法 题目描述: 有许多木桩需要用机器处理,每个木桩有一个长度li和重量wi。给机器安装第一个木桩时需要1分钟,之后每次换木桩时,若新木桩的长度li’<=li,重量wi&rs
摘要:#include <stdio.h>int main() { int T; scanf("%d", &T); while (T--) { int n; s……
递归算法 设R={r1,r2,…,,rn},令Ri=R-{ri}。集合X中的元素的全排列记为Perm(X),则(ri)Perm(X)表示在全排列Perm(X)的每一个排列前加上前缀ri得
摘要:#include <stdio.h>
#include <string.h>
void swap(char *x, char *y) //交换
{
char temp;
t……
c++常见数据类型的范围
摘要:代码:#include<bits/stdc++.h>
using namespace std;
int main()
{
cout<<numeric_limits<short>::max()……
i++与++i,do-while循环与while循环
摘要:(1)do-while i++:#include<stdio.h>int main(){ int i=0; do { printf("count %d\n",i); ……