数据类型: 整数(byte,short,int,long)1 数值型1 浮点数(float,double)1 基本数据类型1 字符(char)1 数据类型 非数值型2 布尔(boolean)2 引用数据类型2 类(class)2 接口(interface)2 数组([])2 数据类型内存占用和取值范 ...
分类:
其他好文 时间:
2021-06-11 18:07:25
阅读次数:
0
T1打包 一个二维01背包的板子,状态转移方程$$Dp_{j,k}=max\left \{Dp_{j,k},Dp_{j-Weight_i,k-V_i}+Value_i\right \}$$ T2暗黑破坏神 大概类似于分组背包,开$long\ long$,在更新$Dp$的过程中记录路径,递归输出即可。 ...
分类:
其他好文 时间:
2021-06-11 18:06:14
阅读次数:
0
#include<stdio.h> #include<stdlib.h> #include<string.h> #define N 3 typedef struct student { int id; char name[20]; char subject[20]; float perf; floa ...
分类:
其他好文 时间:
2021-06-11 18:04:10
阅读次数:
0
#include <stdio.h> const int N=3; int main() { int a[N] = {1, 2, 3}; int i; printf("通过数组名和下标直接访问数组元素:\n"); for(i=0; i<N; i++) printf("%d: %d\n", &a[i] ...
分类:
其他好文 时间:
2021-06-11 17:32:53
阅读次数:
0
% git pull hint: Pulling without specifying how to reconcile divergent branches is hint: discouraged. You can squelch this message by running one of t ...
分类:
其他好文 时间:
2021-06-10 18:54:15
阅读次数:
0
执行这行代码会报错,NameError: name 'false' is not defined response_content = {"result":false,"returnCode":"500","message":"失败"} 你可以使用下面这两行代码来解决: false = False ...
分类:
编程语言 时间:
2021-06-10 18:53:40
阅读次数:
0
题链 分析 显然容斥 考虑有i个有1个或者有0个的情况放到j个非空集合中的方案 可以发现0很麻烦,所以不妨把0的放到一个垃圾集合中,然后把向垃圾集合中加0表示是垃圾集合 问题变成了i+1个数放到j+1个非空集合的方案,即为第二类斯特林数 统计即可 #include<bits/stdc++.h> #d ...
分类:
其他好文 时间:
2021-06-10 18:07:02
阅读次数:
0
数据类型 强类型语言 安全性高,速度慢 要求变量都必须先定义后才能使用 弱类型语言 Java数据类型分为 基本类型 引用类型 八大基本数据类型(primitive type) //整数Itint num = 1;//最常用byte num2 = 20;short num3 = 30;long num ...
分类:
其他好文 时间:
2021-06-10 17:40:26
阅读次数:
0
前言 有时候我们使用drf的Response,会发现默认返回的格式不太友好,每次我们都需要写入以下的格式 return Response({ "status": 0, "message": "成功", "results": serializer.data }) 这样会非常麻烦,我们想默认就有stat ...
分类:
其他好文 时间:
2021-06-09 15:29:52
阅读次数:
0
中国的经济不断变化,你越懂电脑,就越有可能获得工作机会。在重点发展高新技术产业的政策下,对软件开发和编码人才的需求与以往相比飞速增长。我们的记者王美珍已经会面了许多这样上进的人。 方于涛是一位工作经验长达10年的资深软件开发程序员,这对他来说是个好消息。 方于涛在北京的一家创业公司工作,他和他的同事 ...
分类:
其他好文 时间:
2021-06-09 10:32:25
阅读次数:
0