
杂谈
YIF丶
这个作者很懒,什么都没留下…
展开
-
哈希表
哈希表没有裸题。。。初学蒟蒻只好自己瞎搞搞。。。大神勿喷。。var i,j,k,t,n,m,x:longint; a:array[1..100]of longint;function hash(x:longint):longint; begin hash:=x mod 12; end;function locate(x:longint)原创 2017-04-26 21:17:39 · 370 阅读 · 1 评论 -
T1
/*#include#include#includeusing namespace std;long long n,m;int main(){ freopen("remainders.in","r",stdin); freopen("remainders.out","w",stdout); scanf("%lld%lld",&n,&m); long long sum=0; i原创 2017-08-20 14:56:06 · 215 阅读 · 1 评论 -
51Nod 1241
第一次n2华丽丽的tle。大佬教了o(n)的求最长递增序列的方法%%%%#include#include#includeusing namespace std;int n,a[50001],f[50001];int main(){ scanf("%d",&n); for (int i=1;i<=n;i++) scanf("%d",&a[i]); int maxn=0;原创 2017-08-27 15:31:10 · 216 阅读 · 1 评论 -
D - Codeforces 725D 堆
D - Codeforces 725DOne tradition of ACM-ICPC contests is that a team gets a balloon for every solved problem. We assume that the submission time doesn't matter and teams are sorted only by t原创 2017-08-30 20:07:10 · 416 阅读 · 1 评论 -
NOIP2017 D1游记
光棍节打NOIP。。。T1 有毒的T1。第一眼看去以为扩欧或者什么数论。。看了一会儿没什么想法就先过了。后来回头打了暴力。。。出来以后就跟我说T1规律ans=n*m-n-m。。当时心态瞬间爆炸。。。完了呀。。T2大模拟。感觉过了两个样例也不是很确定。。看了一会儿也看不出什么名堂。就这么交了。。。T3看看时间不够。。先打了个暴力。。完了一看数据范围原创 2017-11-11 12:59:17 · 417 阅读 · 0 评论