码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
wpf 多线程操作(2)
using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.Text;using System.Window...
分类:编程语言   时间:2015-07-02 17:26:35    阅读次数:142
hdu 1215 七夕节
代码: #include #include using namespace std; int a[500005]; int main() { memset(a,0,sizeof(a)); //int cnt=0; for(int i=1;i<=500000;i++) { for(int j=1;j*i<=500000;j++) ...
分类:其他好文   时间:2015-07-02 15:44:26    阅读次数:123
从String类看写C++ class需要注意的地方
#include #include using namespace std;class String{ char* m_data;public: String(const char* p = NULL) { if(p == NULL) { ...
分类:编程语言   时间:2015-07-02 15:39:25    阅读次数:114
uva 10831 - Gerg&#39;s Cake(勒让德符号)
题目链接:uva 10831 - Gerg's Cake题目大意:给定a和p。p为素数,问说是否存在x,使得x2≡a%p解题思路:勒让德记号,推断ap?12≡1%p#include #include #include using namespace std;typedef long long ll;...
分类:其他好文   时间:2015-07-02 15:39:07    阅读次数:105
Laravel5.1学习笔记18 数据库4 数据填充
Introduction Writing Seeders Using Model Factories Calling Additional Seeders Running Seeders Introduction Laravel includes a simple method of seeding...
分类:数据库   时间:2015-07-02 15:34:34    阅读次数:156
Laravel5.1学习笔记15 数据库1 数据库使用入门
Introduction Running Raw SQL Queries Listening For Query Events Database Transactions Using Multiple Database Connections Introduction Laravel makes c...
分类:数据库   时间:2015-07-02 15:28:54    阅读次数:181
poj2559 Largest Rectangle in a Histogram
题意: 求最大矩形面积。思路: 维护单调递增的矩形高度,当出现不能维护单调性的数加入时,开始维护面积累计ans ans = max{ans , 当前矩形高度×当前位置到最右的宽度};最后再加入0,清空栈。ps:跪jzt学长/。\ 1 #include 2 #include 3 using na...
分类:其他好文   时间:2015-07-02 15:18:06    阅读次数:124
UVA 11008--Antimatter Ray Clearcutting+状态压缩记忆化搜索
题目链接:点击进入 最多只有16个点,如果不用状态压缩的话,最优子结构没法找到。所以我们进行状态压缩,用一个数表示当前的状态,对应二进制位为1表示该位置的树还未被砍掉,为0表示已被砍掉,初始状态为(1<#include #include #include using namespace std;#define maxn 20 #define...
分类:其他好文   时间:2015-07-02 14:08:10    阅读次数:157
练习题(六)
题目:Implement Stack using QueuesImplement the following operations of a stack using queues.push(x) -- Push element x onto stack.pop() -- Removes the el...
分类:其他好文   时间:2015-07-02 14:01:34    阅读次数:93
双向链表(差不多)
1 #include 2 #include 3 using namespace std; 4 typedef struct node 5 { 6 int date ; 7 node *pri; 8 node *next; 9 }*linklist,listnode;10...
分类:其他好文   时间:2015-07-02 13:57:40    阅读次数:107
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!