码迷,mamicode.com
首页 >  
搜索关键字:xunsearch namespace    ( 41960个结果
归并排序模板
归并排序模板 code: #include<cstdio> #include<cstring> #include<iostream> #include<algorithm> using namespace std; const int N = 1e5 + 10; typedef long long ...
分类:编程语言   时间:2021-04-05 12:52:30    阅读次数:0
x进制转10进制(通用版)
#include<bits/stdc++.h> using namespace std; int main(){ char s[105]; int x; scanf("%s%d",&s,&x); int ans=0; int len =strlen(s); for(int i=0;i<len;i++ ...
分类:其他好文   时间:2021-04-05 12:35:59    阅读次数:0
x进制转y进制(通用版)
#include<bits/stdc++.h> using namespace std; int main(){ char s[105]; int x,y; while(scanf("%d %d",&x,&y)!=EOF){ scanf("%s",s); int ans=0; int len=str ...
分类:其他好文   时间:2021-04-05 12:35:26    阅读次数:0
CCF-CSP-2016-04-1折点计数
链接:http://118.190.20.162/view.page?gpid=T42 代码: #include<bits/stdc++.h> using namespace std; vector<int> ve; int main (){ int n,num; cin>>n; for(int i ...
分类:其他好文   时间:2021-04-05 12:29:58    阅读次数:0
随机数模板
namespace rad{ mt19937_64 R(time(0)); inline int Rand(int l,int r){ uniform_int_distribution<int> distribution(l,r); return distribution(R); } } using ...
分类:其他好文   时间:2021-04-05 12:01:44    阅读次数:0
AcWing 92.93,94
今天写了一下acwing的题目,感觉自己之前对递归没有一个很好的理解,现在写了这几题就有了更好的理解了。 就我而言,递归就是一层一层的调用自己,也就是将层数减少,到最少就不能调用自己了,也就是结束了调用。 解法一: 用二进制枚举每一位。从1到2的n次方,将其转化为二进制,二进制上的第i位是1,就代表 ...
分类:Windows程序   时间:2021-04-05 11:52:51    阅读次数:0
Python基础之:Python中的类
简介 class是面向对象编程的一个非常重要的概念,python中也有class,并且支持面向对象编程的所有标准特性:继承,多态等。 本文将会详细讲解Python中class的信息。 作用域和命名空间 在详细讲解class之前,我们来看一下作用域和命名空间的概念。 命名空间(Namespace)是从 ...
分类:编程语言   时间:2021-04-02 13:33:05    阅读次数:0
201909-1 小明种苹果
简单的模拟 #include<bits/stdc++.h> using namespace std; int main() { int n,m; cin>>n>>m; int sum=0,max_loss=0,max_index; for(int i=0;i<n;i++){ int temp_sum ...
分类:移动开发   时间:2021-04-02 13:12:46    阅读次数:0
SavetheattachmentNew
Public Sub SavetheattachmentNew(Item As Outlook.MailItem) Dim olApp As New Outlook.Application Dim nmsName As Outlook.NameSpace Dim vItem As Object Se ...
分类:其他好文   时间:2021-04-02 13:02:04    阅读次数:0
CF666E Forensic Examination
XVII.CF666E Forensic Examination 首先,同之前大部分题一样,本题仍然有两种解法。SA解法参见本人的题解。SAM解法见下。 仍然,同之前大部分题一样,本题SAM解法完爆SA——码量、思维难度、复杂度。 首先,考虑把所有东西怼一块跑广义SAM,然后对于询问的原串中某一段区 ...
分类:其他好文   时间:2021-04-02 12:54:47    阅读次数:0
41960条   上一页 1 ... 22 23 24 25 26 ... 4196 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!