摘要: 数论: 1.欧几里得 2.拓展欧几里得 3.同余方程——拓展欧几里得 4.逆元——费马小定理,拓展欧几里得(有的逆元不存在) 5.同余线性方程组(中国剩余定理)——拓展欧几里得 6.费马小定理 7.欧拉定理 对于互质的正整数 a 和 n ,有 aφ(n) ≡ 1 mod n 。 8.欧拉函数 9.欧 阅读全文
posted @ 2016-11-16 11:26 cnblogsLSY 阅读(550) 评论(0) 推荐(0) 编辑
摘要: Problem C.星际争霸 For Aiur Input file aiur.in Output file aiur.out Time limit 1 sec Memory limit 128 mb 不知道比你们高到哪里去的Liang,昨天率领他的无敌黄金舰队高喊着“For Aiur”闯入虫族大本 阅读全文
posted @ 2016-11-13 22:13 cnblogsLSY 阅读(150) 评论(0) 推荐(0) 编辑
摘要: Problem B.古墓丽影 Rise of The Tomb Raider Input file lara.in Output file lara.out Time limit 1 sec Memory limit 128 mb 劳拉是Liang的女神,Liang常常和她去一些古墓探险。 在一个希 阅读全文
posted @ 2016-11-13 22:12 cnblogsLSY 阅读(88) 评论(0) 推荐(0) 编辑
摘要: Problem A. 命运之手(fate.c/cpp/pas) 发牌者的憎恶 Input file fate.in Output file fate.out Time limit 1 sec Memory limit 128 mb Liang同学最近被日天同学带的迷上了玩命运之手,然后天天和BUFF 阅读全文
posted @ 2016-11-13 22:11 cnblogsLSY 阅读(76) 评论(0) 推荐(0) 编辑
摘要: Description Farmer John's N cows are standing in a row, as they have a tendency to do from time to time. Each cow is labeled with a distinct integer I 阅读全文
posted @ 2016-11-13 22:08 cnblogsLSY 阅读(104) 评论(0) 推荐(0) 编辑
摘要: John和Bessie分别从(fx,fy)和(bx,by)出发,他们通过无线电通讯,单位时间消耗能量大小等于两人距离的平方(但他们同时在出发点的开始时刻的能量不算),为了节约能量,他们尽量靠在一起。单位时间内John和Bessie都可以选择走或不走。问最小使用能量大小。 因此单位时间消耗能量为(fx 阅读全文
posted @ 2016-11-13 22:07 cnblogsLSY 阅读(94) 评论(0) 推荐(0) 编辑
摘要: Description Bessie和她的朋友Elsie正在建筑一个堡垒,与任何一个好的堡垒一样,这个需要一个强固的框架。Bessie想造一个轮廓是1m宽的空心矩形框架,这样堡垒就可以造在框架上了。 Bessie以及选了一个地点建筑堡垒,一片N*M(1<=N,M<=200)的平地。不幸的是,这个地方 阅读全文
posted @ 2016-11-13 22:05 cnblogsLSY 阅读(100) 评论(0) 推荐(0) 编辑
摘要: 4509: [Usaco2016 Jan]Angry Cows Description Bessie the cow has designed what she thinks will be the next big hit video game: "Angry Cows". The premise 阅读全文
posted @ 2016-11-13 22:04 cnblogsLSY 阅读(141) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-11-13 21:59 cnblogsLSY 阅读(1) 评论(0) 推荐(0) 编辑
该文被密码保护。 阅读全文
posted @ 2016-11-13 21:57 cnblogsLSY 阅读(0) 评论(0) 推荐(0) 编辑