#include using namespace std;int main(){ int n, m, i, j; int a[100001]; cin>>n; int line = 1; while (line >m; for (i = 0; i >a[i]; } int max = a[0]...
分类:
其他好文 时间:
2015-07-14 17:34:08
阅读次数:
109
#include#includestruct Node;typedef struct Node *PtrToDStack;struct Node{ int top1,top2; int Capacity; int *Array;};PtrToDStackCreateStack( ...
分类:
编程语言 时间:
2015-07-14 17:17:26
阅读次数:
110
1.下面这段代码运行的结果是什么?#include #include DWORD dz=0;DWORD dz1=0;void fun1(){ __asm { mov eax, dz push eax ret }}void main(){ HMODULE h = Ge...
分类:
编程语言 时间:
2015-07-14 17:17:15
阅读次数:
120
TRegEx#include void __fastcall TForm1::Button1Click(TObject *Sender){ const String bigString = "Look for a the strings in this strang of strungs."; .....
分类:
其他好文 时间:
2015-07-14 17:15:05
阅读次数:
104
#include using namespace std;int main(){ int n; while (cin>>n) { if (n%2) //陷阱在于n*(n+1)会导...
分类:
其他好文 时间:
2015-07-14 17:10:11
阅读次数:
96
#include #include #include #include using namespace std;int main(){ int a[1002]; int b[1002]; int n; char aa[1002]; char bb[1002]; cin>>n; int line = ...
分类:
其他好文 时间:
2015-07-14 17:06:24
阅读次数:
85
弹出光驱??? ? #include #include #include #include #include #define DEVICE "/dev/cdrom" int fd = open(DEVICE, O_RDONLY|O_NONBLOCK); ? if (fd < 0) { ??? perror("unable to open "DEVICE); ???...
分类:
系统相关 时间:
2015-07-14 15:53:24
阅读次数:
201
#include
using namespace std;
struct Node
{
int data;
Node *next;
Node(int d = int()) :data(d), next(NULL){}
};
class List
{
public:
List()
{
first = NULL;
}...
分类:
编程语言 时间:
2015-07-14 15:45:32
阅读次数:
133
C++ Primer(第五版)学习笔记_7_标准模板库_multiset多重集合容器
多重集合容器multiset与set一样,也是使用红黑树来组织元素数据的,唯一不用的是,multiset允许重复的元素键值插入。其结构示意图如下:
1、multiset元素插入
#include
#include
#include
#include
#include
using nam...
分类:
编程语言 时间:
2015-07-14 15:44:47
阅读次数:
171
题目链接
已经在代码中注释了变量含义,感觉不难
inf好像不止|1e9| inf设成0x3f 才过。。
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
#include
using namespace...
分类:
其他好文 时间:
2015-07-14 15:43:06
阅读次数:
140