码迷,mamicode.com
首页 >  
搜索关键字:mahout taste cf    ( 3181个结果
CF 570D Tree Requests
题目大意 在一棵以结点 $1$ 为根的树上有 \(n\) 个结点,每个结点上有一个小写字母,每个点的深度定义为根结点到该结点路径上的点数。 现在有 \(m\) 次询问 \(a,b\) ,要求输出以结点 \(a\) 为根的子树上深度为 \(b\) 的所有结点上的字母,重新排列后能否形成回文串。 其中, ...
分类:其他好文   时间:2020-07-30 10:50:54    阅读次数:64
按需取余
CF 1374A. Required Remainder You are given three integers x,y and n. Your task is to find the maximum integer k such that 0≤k≤n that kmodx=y, where mo ...
分类:其他好文   时间:2020-07-29 10:29:20    阅读次数:63
[CF从零单排#17]158B - Taxi
题目来源:http://codeforces.com/contest/158/problem/B After the lessons n groups of schoolchildren went outside and decided to visit Polycarpus to celebrat ...
分类:其他好文   时间:2020-07-27 16:07:20    阅读次数:89
自己记录,用CLOVER切换双系统
1、在win系统下,调用diskgenius软件,进入HD0系统分区1,找到boot/grub/grub.cfg文件,把grub.cfg文件复制到win桌面,然后修改set default="0",即可进入deepin系统。 2、在deepin系统下,进入系统,找到boot/grub/grub.cf ...
分类:其他好文   时间:2020-07-27 13:51:30    阅读次数:83
[CF从零单排#13]122A - Lucky Division
题目来源: http://codeforces.com/problemset/problem/122/A Petya loves lucky numbers. Everybody knows that lucky numbers are positive integers whose decimal ...
分类:其他好文   时间:2020-07-27 13:40:27    阅读次数:64
CF 1383A String Transformation 1
传送门 题目:给定两个字符串A,B。我们可以改变A中任意数量相同的字符x变成字符y(必须满足y > x),我们能否把A变成B,可以的话最少几次,不可以输出‘-1’。 思路:看了所有样例后,再通过样例1可以想到一个方法。我们有一个矩阵app['a'~'t']['a'~'t']记录A与B的对应关系,例如 ...
分类:其他好文   时间:2020-07-27 13:37:30    阅读次数:62
数据挖掘----推荐算法(CF)
协同算法: User-Based CF 计算user与user的相似度矩阵 Item-Based CF计算item-item的相似度矩阵 假设: - 用户喜欢哪些跟他有相似爱好的用户喜欢的东西 - 具有相似兴趣的用户在未来也具有相似兴趣 方法: - 给定用户u,找到一个用户的集合N(u),他们和u具 ...
分类:编程语言   时间:2020-07-26 02:07:02    阅读次数:123
[CF从零单排#3] CF158A - Next Round
题目来源: http://codeforces.com/problemset/problem/158/A "Contestant who earns a score equal to or greater than the k-th place finisher's score will advan ...
分类:其他好文   时间:2020-07-23 23:12:25    阅读次数:89
[字符串] CF-71A. Way Too Long Words
题目链接:http://codeforces.com/contest/71/problem/A Sometimes some words like "localization" or "internationalization" are so long that writing them many ...
分类:其他好文   时间:2020-07-23 22:29:02    阅读次数:80
CF 1379 B. Dubious Cyrpto
传送门 题目:给定一个区间范围[l, r]和m,在区间[l, r]中取a, b, c,使得 na + b - c = m(n > 0)。 思路:na + b - c = m,可以看出a和n都是整数,则: na + b - c = m -> na = m - b + c b,c∈[l, r] -> n ...
分类:其他好文   时间:2020-07-21 23:28:14    阅读次数:111
3181条   上一页 1 ... 4 5 6 7 8 ... 319 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!