一、MongoDB介绍 MongoDB是一个面向文档的数据库,它使用动态模式将数据存储在类似JSON的文档中。这意味着您可以存储记录而无需担心数据结构,例如存储值的字段数或字段类型。MongoDB文档类似于JSON对象。 如您所知,RDMS以表格格式存储数据,并使用结构化查询语言(SQL)来查询数据 ...
分类:
数据库 时间:
2020-12-14 12:55:12
阅读次数:
3
L2-1 简单计算器 (25分) 这个题会用栈就能做出来了。按题目要求写就行,比赛没做全对。 #include<bits/stdc++.h>#define ll long longusing namespace std;int main(){ stack<int>s1; stack<char>s2; ...
分类:
其他好文 时间:
2020-12-11 11:38:53
阅读次数:
2
初一看,sb题,上去一个并查集,很快啊,返回一个MLE,定睛一看,系统开的内存很小,但是这个算法复杂度又是这么正确 因此考虑优化内存,这样用滚动数组优化即可 #include<bits/stdc++.h> using namespace std; typedef long long ll; type ...
分类:
其他好文 时间:
2020-12-10 11:39:56
阅读次数:
13
题意: 一个凸多边形和$m$个光源,问最少选择几个光源使得多边形所有边都被照亮 思路: 对于每个光源,处理出能照到的边,即为区间完全覆盖问题,但是区间是环形的,枚举起点处理 #include <bits/stdc++.h> using namespace std; typedef long long ...
分类:
其他好文 时间:
2020-12-10 11:38:18
阅读次数:
15
using AIStudio.ConSole.Redis.Ch01; using System; using System.Collections.Generic; using System.Threading; namespace AIStudio.ConSole.Redis.Ch03 { cla ...
分类:
编程语言 时间:
2020-12-09 12:23:49
阅读次数:
6
总时间限制: 1000ms 内存限制: 65536kB描述 给定10个整数的序列,要求对其重新排序。排序要求: 1.奇数在前,偶数在后; 2.奇数按从大到小排序; 3.偶数按从小到大排序。 输入输入一行,包含10个整数,彼此以一个空格分开,每个整数的范围是大于等于0,小于等于100。输出按照要求排序 ...
分类:
编程语言 时间:
2020-12-09 12:16:09
阅读次数:
6
先说结论:decimal.TryParse性能远远超过try{} catch{},毕竟异常处理非常耗时间,至于decimal.TryParse的内部实现还不清楚,等项目结束再做调查。 源码: using System; using System.Diagnostics; namespace Cons ...
分类:
其他好文 时间:
2020-12-08 12:34:05
阅读次数:
7
用法一 this代表当前类的实例对象 namespace Demo { public class Test { private string scope = "全局变量"; public string getResult() { string scope = "局部变量"; // this代表Tes ...
// setupPersistentNs creates persistent namespace without switchin to it. // Note, pid namespaces cannot be persisted. func setupPersistentNs(namespac ...
分类:
其他好文 时间:
2020-12-07 12:33:25
阅读次数:
6
模板题:https://loj.ac/p/129 知识点:是while不是if 待填坑 code: #include <iostream> #include <cstdio> #include <cstring> using namespace std; const int MAXN = 2e6 + ...
分类:
其他好文 时间:
2020-12-07 12:32:21
阅读次数:
7