随笔分类 -  A——乱搞技巧

摘要:爬山 JSOI2016 炸弹攻击 由于是随机坐标,且ans是整数变化不大,我们可以使用一半的模拟退火一半的爬山 #include<bits/stdc++.h> #include<ctime> #include<cstdlib> #include<iostream> using namespace s 阅读全文
posted @ 2021-02-02 10:25 lcyfrog 阅读(168) 评论(0) 推荐(0) 编辑
摘要:基数排序板子 noip好像t4还有20分是这个 另外,挑排(松排)是把基数U设为 28 卡进cache,需要卡常的话可以试试 #include<bits/stdc++.h> using namespace std; const int N = 1e5+200,U=65536,L=16; #de 阅读全文
posted @ 2021-02-01 18:56 lcyfrog 阅读(128) 评论(0) 推荐(1) 编辑

点击右上角即可分享
微信分享提示