码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
Codeforces Round #659 (Div. 2)
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
C++指针函数;函数指针; 函数参数为数组;函数参数为指针;区分
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
A1105:Spiral Matrix (25)
【螺旋矩阵】三部曲: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
luoguP1967 货车运输
题面 #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
Map 与结构体的混合使用
#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
7-18 二分法求多项式单根 (20分)
#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
雪花算法Twitter的分布式自增ID算法snowflake (Java版)
概述 分布式系统中,有一些需要使用全局唯一ID的场景,这种时候为了防止ID冲突可以使用36位的UUID,但是UUID有一些缺点,首先他相对比较长,另外UUID一般是无序的。 有些时候我们希望能使用一种简单一些的ID,并且希望ID能够按照时间有序生成。 而twitter的snowflake解决了这种需 ...
分类:编程语言   时间:2020-07-28 17:25:11    阅读次数:88
C# Json 转 Model / Model 转 Json
Json 转 Model 引用 using Newtonsoft.Json; T Model= JsonConvert.DeserializeObject<T> (JsonString ); Model 转 Json 引用 using System.Web.Script.Serialization; ...
分类:Windows程序   时间:2020-07-28 17:20:13    阅读次数:135
二叉苹果树
#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
dalao高精
#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
53562条   上一页 1 ... 93 94 95 96 97 ... 5357 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!