码迷,mamicode.com
首页 >  
搜索关键字:using    ( 53562个结果
复习action委托
using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Threading.Tasks;namespace ConsoleApplication4{public st...
分类:其他好文   时间:2016-01-19 10:30:25    阅读次数:138
寻找数组中最大值
1 #include 2 3 using namespace std; 4 5 int main() 6 { 7 int s[101]; 8 int max,i,n,c; 9 while(~scanf("%d",&n))10 {11 for(i...
分类:编程语言   时间:2016-01-19 00:16:59    阅读次数:189
基础练习 十六进制转换八进制
1 #include 2 #include 3 #include 4 #include 5 using namespace std; 6 7 char str[100010]; 8 int a[5000000]; 9 10 int main()11 {12 int i,k,j,n...
分类:其他好文   时间:2016-01-19 00:13:15    阅读次数:158
算法训练 关联矩阵
1 #include 2 3 using namespace std; 4 5 int main() 6 { 7 int s[110][1010]; 8 int n,m,a,b,i,j; 9 while(~scanf("%d%d",&n,&m))10 {11 ...
分类:编程语言   时间:2016-01-19 00:13:09    阅读次数:237
Torry的困惑(基本型)
1 #include 2 3 #include 4 using namespace std; 5 6 bool isprime(int x) 7 { 8 int i; 9 for(i=2;i<=sqrt((double)x);i++)10 {11 i...
分类:其他好文   时间:2016-01-19 00:11:22    阅读次数:136
C#通过指针读取文件
// readfile.cs// 编译时使用:/unsafe// 参数:readfile.txt// C#通过指针读取文件。使用该程序读并显示文本文件。using System;using System.Runtime.InteropServices;using System.Text;class ...
分类:Windows程序   时间:2016-01-19 00:10:48    阅读次数:291
寒假第二周 1.18 --- 1.24
1.18cf 581c581C - Developing Skills重新自己写了一遍,注意都是0 的时候 1 #include 2 #include 3 #include 4 #include 5 #include 6 using namespace std; 7 8 const int max....
分类:其他好文   时间:2016-01-19 00:08:49    阅读次数:272
Divide and conquer:Median(POJ 3579)
快速求两数距离的中值 题目大意:给你一个很大的数组,要你求两个数之间的距离的中值 二分法常规题,一个pos位就搞定的事情 1 #include 2 #include 3 #include 4 5 using namespace...
分类:其他好文   时间:2016-01-18 22:51:49    阅读次数:327
【BZOJ2199】 [Usaco2011 Jan]奶牛议会
Description由于对Farmer John的领导感到极其不悦,奶牛们退出了农场,组建了奶牛议会。议会以“每头牛 都可以获得自己想要的”为原则,建立了下面的投票系统: M只到场的奶牛 (1 2 #include 3 using namespace std; 4 const char ch[3....
分类:其他好文   时间:2016-01-18 22:40:39    阅读次数:390
【BZOJ1468】Tree
Description给你一棵TREE,以及这棵树上边的距离.问有多少对点它们两者间的距离小于等于KInputN(n 2 #include 3 using namespace std; 4 const int N=40010; 5 int deep[N],head[N],son[N],f[N],d[...
分类:其他好文   时间:2016-01-18 22:38:28    阅读次数:190
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!