A. Common Prefixes 题目链接 代码: #include<bits/stdc++.h> using namespace std; const int maxn = 1e6 + 10; #define ll long long #define ios std::ios::sync_wi ...
分类:
其他好文 时间:
2020-07-29 09:52:41
阅读次数:
58
include<iostream> using namespace std; int* Array() { int *a; a=new int [10]; for(int i=0;i<10;i++) { a[i]=i+1; cout<<a[i]<<" "; } cout<<endl; return ...
分类:
编程语言 时间:
2020-07-29 00:42:04
阅读次数:
83
【螺旋矩阵】三部曲:1、[ 找到 m、n ] 2、[ 开二维数组填充矩阵 ] 3、[ 输出矩阵 ] 1 #include<bits/stdc++.h> 2 using namespace std; 3 4 bool cmp(int a, int b) { return a > b; } 5 6 in ...
分类:
其他好文 时间:
2020-07-28 22:39:21
阅读次数:
70
题面 #include <bits/stdc++.h> using namespace std; template<typename temp> void read(temp &x){ x = 0; temp f = 1; char ch; while(!isdigit(ch = getchar() ...
分类:
其他好文 时间:
2020-07-28 22:35:46
阅读次数:
61
#include <iostream> #include <map> using namespace std; typedef struct alertInfo { double alertUp; double alertDown; alertInfo(double up, double down) ...
分类:
其他好文 时间:
2020-07-28 22:25:22
阅读次数:
75
#include<iostream> #include<cstdio> using namespace std; float a, b, c, d; float l, r; float clac(float x){ return a * x * x * x + b * x * x + c * x + ...
分类:
其他好文 时间:
2020-07-28 22:15:33
阅读次数:
72
概述 分布式系统中,有一些需要使用全局唯一ID的场景,这种时候为了防止ID冲突可以使用36位的UUID,但是UUID有一些缺点,首先他相对比较长,另外UUID一般是无序的。 有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。 而twitter的snowflake解决了这种需 ...
分类:
编程语言 时间:
2020-07-28 17:25:11
阅读次数:
88
Json 转 Model 引用 using Newtonsoft.Json; T Model= JsonConvert.DeserializeObject<T> (JsonString ); Model 转 Json 引用 using System.Web.Script.Serialization; ...
#include<bits/stdc++.h> using namespace std; const int N=450; struct data { int to,stb,vol; } a[N]; int head[2*N],root,tot,v[N],f[N][101],n,p,o[N]; in ...
分类:
移动开发 时间:
2020-07-28 16:55:50
阅读次数:
98
#ifndef MY_BIGN_H#define MY_BIGN_H 1#pragma GCC system_header#include<cstring>#include<algorithm>#include<iostream>using std::max;using std::istream;u ...
分类:
其他好文 时间:
2020-07-28 16:52:02
阅读次数:
67