码迷,mamicode.com
首页 >  
搜索关键字:invalid namespace    ( 44721个结果
c#学习5,处理异常
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 异常1{ class Program { static void Main(string[...
分类:其他好文   时间:2014-05-19 20:39:32    阅读次数:309
zzuli训练赛_05_13-K
题意:是输入N,2#include#includeusing namespace std;bool temp[100000];bool Try(int n)//判断素数 { if(n==2) return true; for(int i=2;i>n) { ...
分类:其他好文   时间:2014-05-19 11:19:42    阅读次数:168
c#学习5,静态字段,静态函数,静态类
using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace 静态成员{ class Program { static void Main(string...
分类:其他好文   时间:2014-05-19 10:38:16    阅读次数:263
c++ c# java 调用 c++ 写的dll
1. vs 中新建win32 dll 项目 testdll添加实现文件 test.cpp#include "stdafx.h" #include using namespace std;int Add(int plus1, int plus2){ int add_result = plus1 ...
分类:编程语言   时间:2014-05-19 10:25:52    阅读次数:309
POJ 2828 Buy Tickets(神题!线段树or树状数组)
题目链接:POJ 2828 Buy Tickets【题意】给了你 n(1 7 #include 8 #include 9 using namespace std;10 const int MAX = 200005;11 12 int pos[MAX], val[MAX], ans[MAX];13.....
分类:其他好文   时间:2014-05-19 10:10:34    阅读次数:282
HDU 2795 Billboard(线段树)
题目链接:HDU 2795 Billboard【题意】给你一张h*w(1 7 #include 8 #include 9 using namespace std;10 const int MAX = 200005;11 12 int tree[MAX= val)26 {27 ...
分类:其他好文   时间:2014-05-19 10:09:17    阅读次数:419
hust 1625 Chessboard
题目描述Given an N*N(N#include#include#includeusing namespace std;const int maxn=1001;int group[maxn][maxn];bool vis[maxn][maxn];int dx[4]={0,0,1,-1};int ...
分类:其他好文   时间:2014-05-19 09:06:30    阅读次数:379
Codeforces Round #246 (Div. 2) A. Choosing Teams
给定n k以及n个人已参加的比赛数,让你判断最少还能参加k次比赛的队伍数,每对3人,每个人最多参加5次比赛#include using namespace std;int main(){ int n,k, cnt = 0; cin >> n >> k; for(int i = 0 ...
分类:其他好文   时间:2014-05-19 08:40:56    阅读次数:239
AC自动机
hdu2222 字符串多模匹配算法 采用kuangbin模板#include #include #include #include #include using namespace std;struct Trie{ int next[500010][26],fail[500010],end[5...
分类:其他好文   时间:2014-05-19 08:36:17    阅读次数:234
tsinsen A1486. 树(王康宁) 边分治+字典树
不知为何,这个代码只能得95分放一下傻逼代码。。。#include#include#include#includeusing namespace std;int n,K;int nn2=1,nn=1,nod;#define N 1000000#define ed(x) (x>>1)#define a...
分类:其他好文   时间:2014-05-17 17:55:40    阅读次数:425
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!