类型转换 由于Java时强类型语言,所有要进行有些运算的时候,需要用到类型转换。 低 > 高 byte,short,char-> int -> long -> float -> double int i =128; byte b = (byte) i;//内存溢出 ? //强制转换 (类型)变量名 ...
分类:
其他好文 时间:
2020-07-04 00:57:09
阅读次数:
77
A 温暖的签到题。 #include <bits/stdc++.h> using namespace std; #define ll long long ll input(){ ll x=0,f=0;char ch=getchar(); while(ch<'0'||ch>'9') f|=ch=='- ...
分类:
其他好文 时间:
2020-07-03 23:08:21
阅读次数:
69
目录的操作不论是在嵌入式还是应用软件编程都是必不可少的,不同的开发语言可能略有不同,本章节主要是讨论在Linux系统下目录的一系列操作,以我的个人经验,创建目录和列出目录中的文件这两个功能用得最多。 ...
分类:
编程语言 时间:
2020-07-03 21:24:20
阅读次数:
118
A bus has n stops numbered from 0 to n - 1 that form a circle. We know the distance between all pairs of neighboring stops where distance[i] is the di ...
分类:
其他好文 时间:
2020-07-03 19:42:49
阅读次数:
68
//主函数 public static void main(String[] args) throws Exception { long startTime = System.currentTimeMillis(); // String localFilePath = localTempPath+" ...
分类:
编程语言 时间:
2020-07-03 19:09:32
阅读次数:
64
背景:公司的项目很大,往往一个项目父项目下面有很多子项目,每个项目都要在application.properties配置文件中写很多的配置,后来发现有很多配置信息都是固定的,每个项目都需要取维护就会很麻烦,所以准备采取在数据库中进行配置,统一管理,有点类似于nacos、阿波罗的服务中的配置文件管理功 ...
分类:
数据库 时间:
2020-07-03 15:21:12
阅读次数:
253
参考:https://www.luogu.com.cn/blog/RPdreamer/p2051 #include<map> #include<queue> #include<time.h> #include<limits.h> #include<cmath> #include<ostream> # ...
分类:
其他好文 时间:
2020-07-03 14:05:54
阅读次数:
57
报错原因 Java项目启动命令过长 解决方法 点击项目启动配置项 → shorten command line 选项选择 classpath file 或 java manifest 选项 → 重新启动工程运行即可 参考文献 SpringBoot报错Error running 'Applicatio ...
分类:
移动开发 时间:
2020-07-03 14:03:19
阅读次数:
69
1. 拦截器注解 1. mybatis自定义拦截器实现步骤: 实现org.apache.ibatis.plugin.Interceptor接口。 添加拦截器注解org.apache.ibatis.plugin.Intercepts。 配置文件中添加拦截器。 2. 在mybatis中可被拦截的类型有四 ...
分类:
其他好文 时间:
2020-07-03 10:58:18
阅读次数:
63
Source Code Problem: 1279 User: Faker_fan Memory: 296K Time: 0MS Language: C++ Result: Accepted Source Code #include <iostream> #include <string.h> #i ...
分类:
其他好文 时间:
2020-07-02 21:31:43
阅读次数:
44