04 2014 档案

摘要:记录一下自己在Windowns下安装java的过程安装网址:http://www.oracle.com/index.html打开网址后要先登录,如果没有号就先注册,然后才能下载step1:下载JDK(1)将鼠标指向download,会出现如下界面:(2)点击左上角PopularDownloads下的... 阅读全文
posted @ 2014-04-23 03:01 N_ll 阅读(4565) 评论(0) 推荐(0)
摘要:题目1 : 焦距时间限制:2000ms单点时限:1000ms内存限制:256MB描述一般来说,我们采用针孔相机模型,也就是认为它用到的是小孔成像原理。在相机坐标系下,一般来说,我们用到的单位长度,不是“米”这样的国际单位,而是相邻像素的长度。而焦距在相机坐标系中的大小,是在图像处理领域的一个非常重要... 阅读全文
posted @ 2014-04-20 23:43 N_ll 阅读(186) 评论(0) 推荐(0)
摘要:A.读题读了好久。。。 1 #include 2 #include 3 #include 4 const int INF=1>c>>d)11 {12 cin>>n>>m>>k;13 if (n*m = n*m-k)27 {28 ... 阅读全文
posted @ 2014-04-18 09:37 N_ll 阅读(204) 评论(0) 推荐(0)
摘要:http://acm.timus.ru/problem.aspx?space=1&num=1017题意:有n块砖,要求按照严格递增的个数摆放成楼梯,求楼梯的摆放种类数。思路:状态转移方程:dp[i][j]=sum(dp[i-j][k]), 0 2 #include 3 #define LL lo... 阅读全文
posted @ 2014-04-17 21:52 N_ll 阅读(130) 评论(0) 推荐(0)
摘要:和1009相同,只是n达到了180位,可以模拟大数加和大数乘,这里用的java中的大数。 1 import java.math.BigInteger; 2 import java.util.Scanner; 3 public class Main { 4 public static void... 阅读全文
posted @ 2014-04-16 19:59 N_ll 阅读(135) 评论(0) 推荐(0)
摘要:http://acm.timus.ru/problem.aspx?space=1&num=1009题意:将一个n位数转化为合法的K进制数,有多少种情况。合法的K进制数即不含前导0,且任意两个0都不相邻。思路:每一位的情况都分为:小于K且不等于0的情况或等于0的情况,每一位的选择都有前一位决定。dp[... 阅读全文
posted @ 2014-04-15 21:23 N_ll 阅读(123) 评论(0) 推荐(0)
摘要:分享一首很喜欢的歌,有时候歌词写得就是经历,就是人生。。。穿过人潮汹涌灯火栏栅 没有想过回头 一段又一段走不完的旅程 什么时候能走完 我的梦代表什么 又是什么让我们不安 That's just life 寻找梦里的未来 That's just life 笑对现实的无奈 不能后退的时候 不再傍徨的时候永远向前路一直都在 穿过一块里面一片黑暗没有想过回头 一段又一段走不完的旅程 什么时候能习惯 我的梦代表什么 又是什么让我们期盼 That's just life 寻找梦里的未来 That's just life 笑对现实的无奈 不能后退的时候 不再傍徨的时候 永远向 阅读全文
posted @ 2014-04-11 01:08 N_ll 阅读(261) 评论(0) 推荐(0)
摘要:http://codeforces.com/problemset/problem/10/A题很简单,就是题意难懂啊。。。 1 #include 2 #include 3 #include 4 using namespace std; 5 const int N=102; 6 struct node 7 { 8 int l,r; 9 } g[N];10 int main()11 {12 int n,p1,p2,p3,t1,t2;13 while(cin>>n>>p1>>p2>>p3>>t1>>t2)14 {15 int su 阅读全文
posted @ 2014-04-10 00:21 N_ll 阅读(153) 评论(0) 推荐(0)
摘要:A. Train and Petertime limit per test1 secondmemory limit per test64 megabytesinputstandard inputoutputstandard outputPeter likes to travel by train. He likes it so much that on the train he falls asleep.Once in summer Peter was going by train from city A to city B, and as usual, was sleeping. Then 阅读全文
posted @ 2014-04-08 19:59 N_ll 阅读(332) 评论(0) 推荐(0)
摘要:http://codeforces.com/problemset/problem/414/BB. Mashmokh and ACMtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputMashmokh's boss, Bimokh, didn't like Mashmokh. So he fired him. Mashmokh decided to go to university and participate in ACM in 阅读全文
posted @ 2014-04-07 17:07 N_ll 阅读(373) 评论(0) 推荐(0)
摘要:http://acm.hdu.edu.cn/showproblem.php?pid=1005找循环节。。 1 #include 2 #include 3 const int N=52; 4 int f[N]; 5 int main() 6 { 7 int a,b,n; 8 while(~scanf("%d%d%d",&a,&b,&n)) 9 {10 int s,e;11 if (a==0&&b==0&&n==0)12 break;13 f[0] = 1;14 f[1] = 1;1... 阅读全文
posted @ 2014-04-04 20:17 N_ll 阅读(129) 评论(0) 推荐(0)
摘要:http://acm.sdut.edu.cn/sdutoj/problem.php?action=showproblem&problemid=2321题意:第一次用java写代码。。纪念一下。。虽然写的有点挫。。 1 import java.math.BigInteger; 2 import java.util.Scanner; 3 4 5 public class Main { 6 7 public static void main(String[] args) { 8 9 Scanner cin = new Scanner(Syste... 阅读全文
posted @ 2014-04-03 22:58 N_ll 阅读(267) 评论(0) 推荐(0)
摘要:http://poj.org/problem?id=3792题意:给出n个小正方体的中心坐标,求构成的多重小立方体的表面积。要求输入的下一个小正方体必须与之前的正方体有一个面是相交的。如果不满足条件,输出NO,并输出第几个正方体是不满足条件的。思路:总面积s = n*6;每形成距离为1的正方体面积就减少2,如果在该正方体之前没有距离为1的正方体则该正方体不满足条件。注意重坐标。 1 #include 2 #include 3 #include 4 using namespace std; 5 const int N=1010; 6 struct node 7 { 8 int x,... 阅读全文
posted @ 2014-04-03 19:56 N_ll 阅读(254) 评论(0) 推荐(0)
摘要:http://acm.timus.ru/problem.aspx?space=1&num=1126简单的线段树求区间最值 1 #include 2 #include 3 #include 4 using namespace std; 5 const int N=100002; 6 int a[N],ans ; 7 struct node 8 { 9 int l,r,Max;10 } tree[N*4];11 void build(int t,int l,int r)12 {13 tree[t].l = l;14 tree[t].r = r;15 if (l... 阅读全文
posted @ 2014-04-01 19:10 N_ll 阅读(205) 评论(0) 推荐(0)