码迷,mamicode.com
首页 >  
搜索关键字:c. dzy loves sequences    ( 1332个结果
【题解】Ynoi2019模拟赛 Yuno loves sqrt technology II
考虑莫队。 如果是单纯的莫队的话,还需要一个树状数组来维护逆序对数,这样子的话复杂度是 \(O(n^{1.5}\log n)\),难以接受。 怎么将这个树状数组消除? 考虑当前区间为 \([l,r-1]\) ,需要将右端点向右移动,即加入 \(a_r\) ,并且将答案加上 \(a_{l,l+1,\c ...
分类:其他好文   时间:2020-12-25 12:28:35    阅读次数:0
Codeforces Round #104 (Div.2)补题报告
B - Lucky Mask Petya loves lucky numbers very much. Everybody knows that lucky numbers are positive integers whose decimal record contains only the lu ...
分类:其他好文   时间:2020-12-25 12:22:13    阅读次数:0
X Server-Client
Are you a Linux fan? Do you hate to do things the easy way? Are you a pro who loves to put his computer’s life on the line to experiment and customize ...
分类:其他好文   时间:2020-11-12 13:37:01    阅读次数:8
Codeforces Round #670 (Div. 2) C. Link Cut Centroids (dfs,树)
Link Cut Centroids Fishing Prince loves trees, and he especially loves trees with only one centroid. The tree is a connected graph without cycles. A v ...
分类:其他好文   时间:2020-09-24 21:11:56    阅读次数:36
学长小清新题表之UOJ 14.DZY Loves Graph
学长小清新题表之UOJ 14.DZY Loves Graph 题目描述 $DZY$开始有 \(n\) 个点,现在他对这 \(n\) 个点进行了 \(m\) 次操作,对于第 \(i\) 个操作(从 $1$开始编号)有可能的三种情况: \(Add\ a\ b:\) 表示在 \(a\) 与 \(b\) 之 ...
分类:其他好文   时间:2020-08-17 17:49:16    阅读次数:70
1020 Tree Traversals (25分)
题干 Suppose that all the keys in a binary tree are distinct positive integers. Given the postorder and inorder traversal sequences, you are supposed to ...
分类:其他好文   时间:2020-07-29 21:34:20    阅读次数:77
Rinne Loves Edges
Rinne Loves Edges Problem: Rinne 最近了解了如何快速维护可支持插入边删除边的图,并且高效的回答一下奇妙的询问。 她现在拿到了一个 n 个节点 m 条边的无向连通图,每条边有一个边权 \(w_i\) 现在她想玩一个游戏:选取一个 “重要点” S,然后选择性删除一些边,使 ...
分类:其他好文   时间:2020-07-28 10:15:00    阅读次数:57
[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
arc092D Two Sequences
题意 给你两个长度为 \(n\) 的串 \(a,b\) 求 \(a,b\) 两序列各任取一数相加形成的$n^2$个和的异或和 $1 \le n \le 2 \times 10^5$ $0 \le a_i \le 2^{28}$ 传送门 思路 按位考虑。对于第$i$位,令 \(x=2^i\),所有数对 ...
分类:其他好文   时间:2020-07-26 22:51:31    阅读次数:66
Codeforces #657 Problem B
##题目 Pasha loves to send strictly positive integers to his friends. Pasha cares about security, therefore when he wants to send an integer n, he encry ...
分类:其他好文   时间:2020-07-19 23:37:51    阅读次数:80
1332条   上一页 1 2 3 4 ... 134 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!