谁有最新CF外挂哦?可以发个来不?
原创 2011-04-29 23:20:06
411阅读
http://codeforces.com/problemset/problem/552/D#include #include #include #include #include #include #include #include #include #include #long ll;typedef
原创 2023-07-11 16:30:55
109阅读
“穿越火线”简称CF,是目前一款非常热门的腾讯国产游戏,不少朋友都在玩,在热门游戏排行中也非常靠前,其实CF游戏并不属于大型3D游戏,对电脑配置要求也不高,首先来看看官方给出的配置要求:从上面腾讯游戏官方配置要求来看,穿越火线对电脑配置要求很低就可以运行,当然用户一般都是一边开游戏吗,一边挂QQ,以及打开一些网页等,所以配置尽量高于官方最低配置要求即可。CPU方面最低是P4处理器,1.5G主频以上
cf1463: 会做 E,F学会 cf1469: 一题不会 cf1473: 做了 E,F G 不可做 ...
转载 2021-10-12 10:39:00
94阅读
2评论
CF504E Misha and LCP on Tree [*3000] 原题链接 Solution 垃圾题。 考虑 LCP 问题的经典解法,二分一个前缀,判定这个前缀能否成为 LCP。 判定前缀考虑 Hash,需要预处理出每个点从根到它,从它到根的哈希值。 然后我们发现,每次二分之后需要找终点,这 ...
转载 2021-10-31 09:39:00
61阅读
2评论
CF VP & 比赛记录 Codeforces Round #751 阳间场有阳间题。 C. Array Elimination 给定一个长度为 \(n\) 的序列,定义一次操作为选 \(k\) 个数减去它们按位与的结果。 求所有合法的 \(k\),使得最后序列全部为 \(0\)。 关键:按位与。 ...
转载 2021-10-26 11:43:00
96阅读
2评论
A - Trains Vasya the programmer lives in the middle of the Programming subway branch. He has two girlfriends: Dasha and Masha, who live at the different ends of the branch, each one is unaware o
原创 2022-08-10 14:17:56
49阅读
链接:http://codeforces.com/problemset/problem/44/A直接判重#include using namespace std;string s1,s2;map,int> m;int main(){ int n; scanf("%d",&n); while(n--) { cin>>s1>>s2;
原创 2023-08-15 17:32:29
47阅读
A. Launch of C time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output There will be a launch of
转载 2016-07-21 09:47:00
52阅读
以前开的坑 cf上刷点题,代码用链接方式给出 10D 感觉早期的题评分都有点高,大概就是设$dp_{i,j}$为到$a$第$i$个位置和到$b$第$j$个位置的答案,满足$a_i=b_j$,然后设$f_k$为$b$在$k$这个位置的最优答案,那么有以下的$dp$ \(dp_{i,j}=\max_{k ...
转载 2021-07-21 14:22:00
101阅读
2评论
题意:给n个高度,k排,身高是呈线性的,从1-->n,然后输入n个数,代表每个身高多有多少人,现在要求k排最多排多少个人?题解:思路是:贪心+二分1:如何贪心贪心写入判断函数,由题意很容易得出以k为判断点去二分,所以贪心就和k有关联由于一排的身高 差值=1 ,而且身高的变化函数是y=x,呢么相邻的两个身高肯定差值=1,然后根据相邻的可以补为一排,增加排数2:如何二分当排数大...
原创 2022-09-19 09:48:00
26阅读
A. Infinite Sequence time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output Vasya likes everything infinite. Now he
原创 2023-08-15 17:26:18
21阅读
A. Tricky Sum time limit per test 1 second memory limit per test 256 megabytes input standard input output standard output In this problem you are to calculate the sum o
原创 2023-08-15 17:27:39
63阅读
链接:http://codeforces.com/problemset/problem/689/A   直接将给的向量四个方向平移一次看是否有符合的#include using namespace std;#define ll long longconst int maxn=1e5+10;int n;char s[maxn],str[maxn];int flag[4]
原创 2023-08-15 17:33:04
74阅读
链接:http://codeforces.com/problemset/problem/697/A #include using namespace std; int main() { int n,m,k; scanf("%d%d%d",&n,&m,&k); if(k<n)printf("NO\n"); else if(k==n)printf("YES
原创 2023-08-15 17:33:57
63阅读
RE选老婆 Time Limit: 1000MS Memory limit: 65536K 题目描述 RE最近为情所困,甚至代码都不想敲了。。天天抽刀断水水更流,举杯消愁愁更愁啊。。对酒哭人生,对月诉衷肠。。。于是身为他的队长的我很是着急啊。。这不校赛已经结束了,于是想要给他从参加校赛的中找个妹子,他是疯子她是傻,与他缠缠绵绵敲代码到天涯。但是不知道参赛者是男
原创 2023-04-21 01:24:53
43阅读
cf算法全称“Collaborative Filtering”,即协同过滤算法。协同过滤算法是非常强大与成熟(古老)的一套算法。它广泛应用于电子商务系统等领域。  协同过滤算法的出现标志着推荐系统的产生。协同过滤简单来说是利用某兴趣相投、拥有共同经验之群体的喜好来推荐用户感兴趣的信息,个人通过合作的机制给予信息相当程度的回应(如评分)并记录下来以达到过滤的目的进而帮助别人筛选信
#include<cstdio> #include<string> #include<cstdlib> #include<cmath> #include<iostream> #include<cstring> #include<set> #include<queue> #include<algori
转载 2018-08-09 20:37:00
97阅读
2评论
CodeForce 1550 A 考虑最少,我们可以将序列数字设为: \(1,3,5,7,9....\) 进行前缀和计算,找到 \(S\) 匹配到的区间值,其最少的数的个数即为对应大前缀和的下标。(这是一种时间复杂度更优的算法) #include<bits/stdc++.h> using names ...
转载 2021-08-23 19:25:00
366阅读
CF1555 A: 推公式题,每一个都是 \(2.5\) 的时间,那么我们尽量用 \(10\) 。 如果是偶数,那么直接可以凑出来,如果是奇数,就 \(+1\) 变成偶数来凑,再考虑特殊情况即可。 #include<bits/stdc++.h> using namespace std; #defin ...
转载 2021-08-26 20:00:00
123阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5