int :整型,4个字节 double:浮点型,例如double(5,2)表示最多5位,其中2位为小数,即最大值为999.99。 varchar:可变长度字符串类型。varchar(10) ‘aaa’ 占3位 datetime:日期时间类型。yyyy-MM-dd hh:mm:ss char:固定长度 ...
分类:
数据库 时间:
2021-02-09 11:59:37
阅读次数:
0
题目链接:AcWing 374. 导弹防御塔 题面: ? Freda的城堡遭到 \(M\) 个入侵者的袭击!Freda控制着 \(N\) 座导弹防御塔,每座塔有足够数量的导弹,但每次只能发射一枚。在发射导弹时,导弹需要 \(T1\) 秒才能从防御塔中射出,而在发射导弹后,发射这枚导弹的防御塔需要 \ ...
#include <bits/stdc++.h> using namespace std; typedef long long ll; typedef double db; ll a, b, c, d; void solve1() { if (a > 0) { puts("(-inf,inf)"); ...
分类:
其他好文 时间:
2021-02-08 12:05:36
阅读次数:
0
数据结构 C中整数之间的运算结果只会是整数 带小数点的数是浮点数 %d //是整数的参数 %f //是浮点数的参数 const int PLS=2.3; printf("%f",PLS); int定义整数变量,double定义双精度浮点数,float定义单精度浮点数 double ACD; scan ...
分类:
其他好文 时间:
2021-02-08 11:52:48
阅读次数:
0
public class Demo02 { public static void main(String[] args) { //八大基本类型 //整数 int num1 = 10; //最常用 byte num2 = 20; short num3 = 30; long num4 = 30l; // ...
分类:
其他好文 时间:
2021-02-05 10:43:51
阅读次数:
0
C# 简单粗暴的毫秒转换成 分秒的格式 1:code(网络上很多都是错误的,或者存在bug,只好自己写一个了) 1 public static string RevertToTime(double milliSeconds)//毫秒 2 { 3 double getsecond = milliSec ...
643 of leetcode class Solution { public: double findMaxAverage(vector<int>& nums, int k) { double len=nums.size(); double sum_now=0; double sum_max=0; ...
分类:
其他好文 时间:
2021-02-04 12:24:48
阅读次数:
0
1 package base; 2 3 public class Demo3 { 4 //类变量 static 5 //修饰符顺序不讲究 6 static double salary =2500; 7 8 // 属性:变量 9 10 // 实例变量:从属于对象;如果不自行初始化,这个类型的默认值 0 ...
分类:
其他好文 时间:
2021-02-04 12:11:16
阅读次数:
0
众所周知tabbar的高度是不可改变的。比如我们普通的写一个tabbar。 先上效果图: 代码: Scaffold( appBar: AppBar( title: Text("TabBarDemo"), bottom: TabBar( tabs: <Widget>[ Tab(text: "热门"), ...
分类:
其他好文 时间:
2021-02-04 11:42:55
阅读次数:
0
#include <iostream>using namespace std; const double pi = 3.14159;//double Area(double radius)//{// double result = 0;// return result = pi * radius * ...
分类:
其他好文 时间:
2021-02-02 10:32:23
阅读次数:
0