码迷,mamicode.com
首页 >  
搜索关键字:using password: yes    ( 53562个结果
2020杭电多校第三场
1004.Tokitsukaze and Multiple 求和为p的倍数的块的最大数量 #include <bits/stdc++.h> using namespace std; typedef long long ll; #define rep(i, a, b) for (register in ...
分类:其他好文   时间:2020-07-29 17:32:55    阅读次数:99
AcWing 826. 单链表
AcWing 826. 单链表 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int e[N],ne[N],head,idx; //初始化 void init(){ head=-1; idx=0; } //将x插到 ...
分类:Windows程序   时间:2020-07-29 15:14:17    阅读次数:98
AcWing 827. 双链表
AcWing 827. 双链表 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int e[N],l[N],r[N],idx; void init(){ //0表示左端点,1表示右端点 r[0]=1; l[1]=0; ...
分类:Windows程序   时间:2020-07-29 15:12:48    阅读次数:86
AcWing 828. 模拟栈
AcWing 828. 模拟栈 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int stk[N],tt; void init(){ tt=0; } void add(int x){ stk[++tt]=x; } ...
分类:Windows程序   时间:2020-07-29 15:11:00    阅读次数:89
AcWing 829. 模拟队列
AcWing 829. 模拟队列 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int q[N],hh,tt; void init(){ hh=0; tt=-1; } void add(int x){ q[++tt ...
分类:Windows程序   时间:2020-07-29 15:09:36    阅读次数:80
AcWing 830. 单调栈
AcWing 830. 单调栈 #include <bits/stdc++.h> using namespace std; const int N=1e6+10; int n; int stk[N],tt; int main(){ cin.tie(0); ios::sync_with_stdio(f ...
分类:Windows程序   时间:2020-07-29 15:07:47    阅读次数:84
判断一个整数是否是2的幂
power_two.cpp内容如下: #include <iostream> using namespace std; bool is_power_of_two(unsigned int n) { return (n && !(n & (n-1))); } int main(int argc, ch ...
分类:其他好文   时间:2020-07-29 15:07:26    阅读次数:62
mysql密码错误-ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using passwor:yes)
一般这个错误是由密码错误引起,解决的办法自然就是重置密码。 假设我们使用的是root账户。 1.重置密码的第一步就是跳过MySQL的密码认证过程,方法如下: root 00:22:26~$ vim /etc/my.cnf (注:windows下修改的是my.ini) 2.在文档内搜索mysqld定位 ...
分类:数据库   时间:2020-07-29 12:37:00    阅读次数:109
释放内存
winform中如果每次打开的窗体都是通过new出来的,发现几次过后就会出现提示”内存不足“问题,那么在关闭窗体的时候怎么处理可以及时释放内存?dispose方法可能也无法解决这个问题。我们可以每次在关闭窗体的时候刷新存储器来彻底释放内存。 using System; using System.Co ...
分类:其他好文   时间:2020-07-29 10:30:16    阅读次数:74
【剑指offer】链表的基本操作之创建、插入、删除
// C++ #include<iostream> using namespace std; //链表的定义 struct ListNode { int val; ListNode* next; ListNode(int n) :val(n), next(nullptr) {} }; //链表的打印 ...
分类:其他好文   时间:2020-07-29 09:59:12    阅读次数:68
53562条   上一页 1 ... 92 93 94 95 96 ... 5357 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!