码迷,mamicode.com
首页 >  
搜索关键字:namespace    ( 41927个结果
我的第一个微服务系列(七):Contact.Api中使用MongoDB
一、MongoDB介绍 MongoDB是一个面向文档的数据库,它使用动态模式将数据存储在类似JSON的文档中。这意味着您可以存储记录而无需担心数据结构,例如存储值的字段数或字段类型。MongoDB文档类似于JSON对象。 如您所知,RDMS以表格格式存储数据,并使用结构化查询语言(SQL)来查询数据 ...
分类:数据库   时间:2020-12-14 12:55:12    阅读次数:3
2020团体程序设计天梯赛 补题
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
CF884E Binary Matrix(并查集)
初一看,sb题,上去一个并查集,很快啊,返回一个MLE,定睛一看,系统开的内存很小,但是这个算法复杂度又是这么正确 因此考虑优化内存,这样用滚动数组优化即可 #include<bits/stdc++.h> using namespace std; typedef long long ll; type ...
分类:其他好文   时间:2020-12-10 11:39:56    阅读次数:13
2018 ICPC Asia Xuzhou Regional M. Rikka with Illuminations
题意: 一个凸多边形和$m$个光源,问最少选择几个光源使得多边形所有边都被照亮 思路: 对于每个光源,处理出能照到的边,即为区间完全覆盖问题,但是区间是环形的,枚举起点处理 #include <bits/stdc++.h> using namespace std; typedef long long ...
分类:其他好文   时间:2020-12-10 11:38:18    阅读次数:15
《Redis实战》-Josiah L.Carlson 的python的源代码翻译成C# 第三章
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
GG:整数奇偶排序
总时间限制: 1000ms 内存限制: 65536kB描述 给定10个整数的序列,要求对其重新排序。排序要求: 1.奇数在前,偶数在后; 2.奇数按从大到小排序; 3.偶数按从小到大排序。 输入输入一行,包含10个整数,彼此以一个空格分开,每个整数的范围是大于等于0,小于等于100。输出按照要求排序 ...
分类:编程语言   时间:2020-12-09 12:16:09    阅读次数:6
decimal.TryParse和Convert.ToDecimal+try{} catch{}的性能比较
先说结论:decimal.TryParse性能远远超过try{} catch{},毕竟异常处理非常耗时间,至于decimal.TryParse的内部实现还不清楚,等项目结束再做调查。 源码: using System; using System.Diagnostics; namespace Cons ...
分类:其他好文   时间:2020-12-08 12:34:05    阅读次数:7
C# this关键字的3种用法
用法一 this代表当前类的实例对象 namespace Demo { public class Test { private string scope = "全局变量"; public string getResult() { string scope = "局部变量"; // this代表Tes ...
分类:Windows程序   时间:2020-12-07 12:36:06    阅读次数:14
kata namespace
// setupPersistentNs creates persistent namespace without switchin to it. // Note, pid namespaces cannot be persisted. func setupPersistentNs(namespac ...
分类:其他好文   时间:2020-12-07 12:33:25    阅读次数:6
Lyndon分解
模板题: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
41927条   上一页 1 ... 46 47 48 49 50 ... 4193 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!