链接:https://ac.nowcoder.com/acm/contest/881/A来源:牛客网
Two arrays u and v each with m distinct elements are called equivalent if and only if RMQ(u,l,r)=RMQ(v,l,r)RMQ(u,l,r)=RMQ(v,l,r) for all ...
链接:https://ac.nowcoder.com/acm/contest/888/E来源:牛客网
Gromah and LZR have entered the fifth level. Unlike the first four levels, they should do some moves in this level.
There are nn_{}n ...
链接:https://ac.nowcoder.com/acm/contest/882/F来源:牛客网
Given 2N people, you need to assign each of them into either red team or white team such that each team consists of exactly N people and ...
链接:https://ac.nowcoder.com/acm/contest/881/A来源:牛客网
题目描述
Two arrays u and v each with m distinct elements are called equivalent if and only if RMQ(u,l,r)=RMQ(v,l,r)RMQ(u,l,r)=RMQ(v...
传送门 J-Counting Triangles_2021牛客暑期多校训练营3 (nowcoder.com)
题目
Goodeat finds an undirected complete graph with n vertices. Each edge of the graph is painted black or white. He wants y...
C.Grab the Seat!
题目链接 https://ac.nowcoder.com/acm/contest/33186/C
题目大意
1.二维平面中,(0,1) - (0,m)为屏幕
2.有n行m列座位(1 <= x <= n, 1 <= y <= m)
3.有k个座位有人,求不被人遮挡...