码迷,mamicode.com
首页 >  
搜索关键字:int 取值范围    ( 143948个结果
c语言中数组的名称原则上为数组的第一个元素的指针,p第一个元素指针时,同时p + i等价于 &a[i]。
c语言中数组的名称原则上为数组的第一个元素的指针。(当sizeof和&应用数数组名除外)。 当p为第一个元素的指针时, p + i 为第一个元素后的第i个元素的指针,则 p + i等价于 &a[i]. 程序如下: #include <stdio.h> int main(void) { int i; ...
分类:编程语言   时间:2021-06-02 16:19:29    阅读次数:0
Introduction to GIS Chapter7
...
分类:其他好文   时间:2021-06-02 16:13:22    阅读次数:0
C++虚函数多态
1. 虚函数和多态 1.1 虚函数 在类的定义中,前面有 virtual 关键字的成员函数称为虚函数; virtual 关键字只用在类定义里的函数声明中,写函数体时不用。 class Base { virtual int Fun() ; // 虚函数 }; int Base::Fun() // vi ...
分类:编程语言   时间:2021-06-02 16:12:45    阅读次数:0
ArrayList两个对象之间的赋值
ArrayList list = new ArrayList(); // 第一次扩容 for (int i = 0; i < 10; i++) { list.add(i); } ArrayList list1 = list; for (int i = 0; i < 5; i++) { list1.a ...
分类:其他好文   时间:2021-06-02 16:00:48    阅读次数:0
CF 580E Kefa and Watch
#include<bits/stdc++.h> #define ull unsigned long long using namespace std; const int N=1000011; const ull St=233,M1=1000000007,M2=1000000009; int n,m ...
分类:其他好文   时间:2021-06-02 16:00:05    阅读次数:0
leetcode1872 石子游戏VIII
思路: 动态规划+转移方程效率优化。 实现: 1 class Solution 2 { 3 public: 4 int stoneGameVIII(vector<int>& stones) 5 { 6 int n = stones.size(), sum = 0; 7 for (int i = 0; ...
分类:其他好文   时间:2021-06-02 15:41:54    阅读次数:0
教你一招:让集群慢节点无处可藏
摘要:GaussDB在大规模集群上运行的过程中,随着时间推移,部分节点可能会出现性能严重下降的情况。此时这些节点仍然能对外提供服务,但响应明显变慢,处理同样的请求所需时间较其他正常节点大很多,从而影响了整个集群的性能。这样的节点称为“亚健康节点”,或“慢节点”。 本文分享自华为云社区《GaussDB ...
分类:其他好文   时间:2021-06-02 15:41:25    阅读次数:0
[ AGC006 D ] Median Pyramid Hard
题目 Atcoder 思路 代码 #include <iostream> using namespace std; const int N = 200010; int n, m, a[N], b[N]; int check(int mid) { for (int i = 1; i <= n * 2 ...
分类:其他好文   时间:2021-06-02 15:33:04    阅读次数:0
[ AGC006 E ] Rotate 3x3
题目 Atcoder 思路 代码 #include <iostream> #include <cstring> #include <algorithm> using namespace std; const int N = 100010; int n, w[4][N], to[N], st[N]; ...
分类:其他好文   时间:2021-06-02 15:31:22    阅读次数:0
[ AGC006 F ] Blackout
题目 Atcoder 思路 代码 #include <iostream> #include <algorithm> #include <cstring> using namespace std; const int N = 100010, M = N << 1; int n, m; int h[N] ...
分类:其他好文   时间:2021-06-02 15:30:41    阅读次数:0
143948条   上一页 1 ... 46 47 48 49 50 ... 14395 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!