码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
C++树状数组
#include <iostream> #include <cstring> using namespace std; int lowbit(int n) { return n - (n & (n - 1)); } /** * 原始数组的i位置增加v后,更新c数组 */ void update(in ...
分类:编程语言   时间:2020-07-08 19:53:22    阅读次数:47
centos7安装redis5
1.下载包 redis-5.0.7.tar.gz 链接: https://pan.baidu.com/s/1hsDDZ0pZx5L_bZNLubZu7Q 提取码: ghnc 2.安装 [root@henry ~]# tar -xf redis-5.0.7.tar.gz -C /usr/share/ ...
分类:其他好文   时间:2020-07-08 18:18:42    阅读次数:58
2019 ICPC Malaysia National 题解
A - Mental Rotation(模拟) 思路: 只要发现旋转的规律就好了 就是向右旋转的时候,矩阵整体旋转,之后里面的图形成为逆时针旋转$90°$的图形 #include<iostream> #include<algorithm> #include<cstring> using namesp ...
分类:其他好文   时间:2020-07-08 01:42:59    阅读次数:109
C#中自定义异常
using System; public class DataHouse { public static void FindData( long ID) { if( ID>0 && ID<1000) Console.WriteLine( ID ); else throw new DataHouseE ...
分类:Windows程序   时间:2020-07-08 00:55:07    阅读次数:80
宁波多校(三) G仓鼠的鸡蛋(线段树)
用线段树维护区间剩余的最大值,这样可以辅助二分,越左越好 对于用完k堆的,直接将他的值变为0即可 #include<bits/stdc++.h> using namespace std; typedef long long ll; const int N=6e5+10; struct node{ i ...
分类:其他好文   时间:2020-07-07 23:39:52    阅读次数:91
2020.7.7 每日记录
高考到了,祝愿考生能取得自己满意的成绩。 今天完成小学期的第四个任务,只是用函数实现空间几何的部分算法,并无太多难点。代码: #include <iostream>#include <iomanip>using namespace std;class Point{public: double x; ...
分类:其他好文   时间:2020-07-07 23:32:56    阅读次数:64
C#四种方法调用类中的函数
方法在Program中,实例成员要实例化对象【对象.方法】之后才能调用 using System; using System.Collections.Generic; using System.Text; namespace Exp04_1 { class Program { //方法在Progra ...
分类:Windows程序   时间:2020-07-07 23:26:18    阅读次数:150
002 数组
所谓数组,就是一个集合,里面存放了相同类型的数据元素 特点1:数组中的每个元素都是相同的数据类型 特点2:数组是由连续的内存位置组成的 注意: 数组名是一个常量,是不可以进行赋值操作的 例1: #include <iostream> using namespace std; int main() { ...
分类:编程语言   时间:2020-07-07 20:29:07    阅读次数:70
OBEX 5-6
下面是用翻译软件翻译的 5. Using OBEX over IrDA Ultra-Lite (Connectionless use) OBEX is constructed to take advantage of(利用。。。的优点) the benefits of a connection-or ...
分类:其他好文   时间:2020-07-07 19:37:47    阅读次数:59
C#算法之冒泡排序
排序规则: 比较相邻的元素。如果第一个比第二个大,就交换它们两个。 对每对相邻元素做同样的工作,从开始第一对到最后一对。这步做完之后,最后的元素会是最大的数。 针对所有的元素重复以上的步骤,除了最后一个。 持续每次对越来越少的元素重复上面的步骤,直到没有任何一对数字需要进行比较。 时间复杂度:O(n ...
分类:编程语言   时间:2020-07-07 19:32:35    阅读次数:60
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!