01 2022 档案
摘要:三目运算符是一个整体 ! Object obj = true ? new Integer(1) : new Double(2.0); System.out.print(obj); 输出的是 1.0 因为三目运算符是一个整体,里面精度最高的是 Double 所以 obj 对应的精度也是 Double
阅读全文
摘要:COW #include<iostream> using namespace std; int main(){ long long int c,o,w; c = o = w = 0; int n; string alls; cin >> n >> alls; for(auto i : alls){
阅读全文
摘要:滑雪 瞎写的 #include<iostream> #include<algorithm> using namespace std; const int N = 10010; double a[N],b[N]; int lena,lenb; int n; double dis; double t =
阅读全文
摘要:基础语法 堆,栈,常量池,内容存放的位置等 DOS命令 一些小函数 getClass() 查看运行类型 StringBuffer 类似vector的不定长度的String length() 实际长度 capacity() 理论容量 String a; String[] res = a.split("
阅读全文
摘要:将点权为1的插入对尾,为0的插入队头 拖拉机 #include<iostream> #include<algorithm> #include<cstring> #include<deque> using namespace std; const int N = 2010; typedef pair<
阅读全文
摘要:差分的进一步应用 基础的差分 最高的牛 #include<iostream> #include<algorithm> #include<cstring> #include<set> using namespace std; const int N = 10010; typedef pair<int,
阅读全文