摘要: 没有正解,都是我的暴力 T1 枚举两个金币个数 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #include<cmath> using namespace std; int a,b,ans; in 阅读全文
posted @ 2018-11-04 21:59 ANhour 阅读(252) 评论(0) 推荐(0)
摘要: 鉴于Noip初赛考到了卡特兰数.....整理一下。凑合着看。 一、介绍 卡特兰数是一种经典的组合数,经常出现在各种计算中,其前几项为: 1, 2, 5, 14, 42, 132, 429, 1430, 4862, 16796, 58786, 208012, 742900, 2674440, 9694 阅读全文
posted @ 2018-11-04 15:55 ANhour 阅读(345) 评论(0) 推荐(0)
摘要: 去年的对拍noip上用不了... 不知道是不是机子的问题...换了一种对拍。 以洛谷11月月赛T2为例。 #include<iostream> #include<cstdio> #include<cstring> #include<algorithm> #define LL long long us 阅读全文
posted @ 2018-11-04 15:09 ANhour 阅读(514) 评论(0) 推荐(1)
摘要: T1 终于结束的起点 题解:枚举啊... 斐波那契数 第46个爆int,第92个爆long long.... 发现结果一般是m的几倍左右....不用担心T。 T2跳跳! 题解:贪心。 从当前没跳过的最高的和最低的之间来回跳。 //预计10分 #include<iostream> #include<c 阅读全文
posted @ 2018-11-04 14:52 ANhour 阅读(380) 评论(0) 推荐(1)