上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 41 下一页
摘要: import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner input = new Scanner(System.in); int numberFir = input.ne 阅读全文
posted @ 2015-03-23 19:59 wojiaohuangyu 阅读(9) 评论(0) 推荐(0)
摘要: 代码:详情解释请看:http://www.cnblogs.com/zhourongqing/archive/2011/10/09/2204071.html #include<cstdio> 02. #include<cstring> 03. #include<algorithm> 04. using 阅读全文
posted @ 2015-03-20 17:07 wojiaohuangyu 阅读(6) 评论(0) 推荐(0)
摘要: 好久没有刷题了,今天先做到简单的,练练手。。。。 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=255 代码:#include<stdio.h> #include<algorithm> using namespace std; int m 阅读全文
posted @ 2015-03-20 14:17 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: 线性表的动态分配顺序存储结构 #define LIST_INIT_SIZE 10//线性表的存储空间的初始分配量 #define LISTINCREMENT 2//线性表存储空间的分配增量 struct Sqlist { ElemType *elem;//存储空间基址 int length;//当前 阅读全文
posted @ 2015-03-19 22:01 wojiaohuangyu 阅读(13) 评论(0) 推荐(0)
摘要: 第一个java程序,纪念一下。。。。 import java.util.Scanner; 02. 03. public class Main { 04. public static void main(String[] args) { 05. Scanner input = new Scanner( 阅读全文
posted @ 2015-03-19 21:54 wojiaohuangyu 阅读(11) 评论(0) 推荐(0)
摘要: 最简单的并查集。。。 代码: #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; int pre[1200]; int mark[1300]; int find(int x){ return pr 阅读全文
posted @ 2015-02-12 19:30 wojiaohuangyu 阅读(6) 评论(0) 推荐(0)
摘要: 规律题,如果多写出几组数据就可以找出规律了。。。。 代码: #include<stdio.h> #include<string.h> __int64 num[1200000]; int main(){ __int64 n; int i,j,k,t; memset(num,0,sizeof(num)) 阅读全文
posted @ 2015-02-10 19:47 wojiaohuangyu 阅读(9) 评论(0) 推荐(0)
摘要: 我想到的根本都不是背包问题,看来是我想得太简单了。。。 代码,借鉴别人的 #include<stdio.h> #include<string.h> #include<algorithm> using namespace std; struct node{ int p,h,c,value; }s[30 阅读全文
posted @ 2015-02-07 23:43 wojiaohuangyu 阅读(8) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=68 看的大神的解析:http://blog.csdn.net/sjl_leaf/article/details/8789785 #include<stdio.h> #include<stri 阅读全文
posted @ 2015-01-13 11:45 wojiaohuangyu 阅读(9) 评论(0) 推荐(0)
摘要: 题目链接:http://acm.nyist.net/JudgeOnline/problem.php?pid=125 题目不经过自己调试ac的不算ac.... #include<stdio.h> #include<string.h> int main(){ int n,m; int i,j,k,t,a 阅读全文
posted @ 2015-01-11 16:16 wojiaohuangyu 阅读(11) 评论(0) 推荐(0)
上一页 1 ··· 24 25 26 27 28 29 30 31 32 ··· 41 下一页